Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What I need to do to make a clone of github repo

Tags:

git

github

I am new to git and gitub.

I created a new public repository on github for a project following the guideline at

http://help.github.com/create-a-repo/

after some steps I used the following commands:

git add .
git commit -m 'first ever commit'
git push origin master

Now I am able to get a zip file from that repo using the github zip feature and that works fine, I can see all my project files after unzip that zip file.

But now I want to get a clone of that repo. What do I need to do now to get a clone? Do I need to create another branch or fork before I can do clone command on my local pc to get a clone of that repo?

After these 2 answers I am still confused. I do not mean to make a clone of my local project. I mean to make a clone of remote public github repo by any one with Internet connection.

like image 943
user1191 Avatar asked Oct 27 '25 02:10

user1191


1 Answers

Take a look at a project like hubot: https://github.com/github/hubot. See the HTTP or "Git read-only" buttons at the top? That tells you the URL to use to clone the repo. So cloning hubot via HTTP, for example would be:

git clone https://github.com/github/hubot.git

Your project page will have the same thing, but in general it will be:

git clone https://github.com/[YOUR USER NAME]/[PROJECT NAME].git

I should add you can also do an SSH checkout, but it will be different. Look at Fork A Repo

git clone [email protected]:[USER NAME]/[PROJECT NAME].git
like image 94
逆さま Avatar answered Oct 29 '25 19:10

逆さま