Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm putting together some documentation and don't have access to a non-configured machine to just test this myself, but I'm curious if you need a github account to clone a repo from github to a local machine.

share|improve this question

migrated from stackoverflow.com Feb 26 '13 at 22:15

This question came from our site for professional and enthusiast programmers.

1 Answer 1

up vote 7 down vote accepted

No. You just use a different URL:

git clone git://github.com/SomeUser/SomeRepo.git

However, the local repo will be "read-only" in the sense that you won't be able to push your changes back to the original repo. You will still able to modify files and commit changes locally, though.

In contrast,

git clone git@github.com:UserName/OtherRepo.git

works only if you have properly set up your environment with the necessary SSH keys and whatnot, but in return you'll get a repository that permits you to commit/push the changes back to the remote repo.

(Sorry for the unintentional ad for GitHub, I just had it in mind.)

share|improve this answer
Awesome, thank you for the clarification. I'm aware of the limitations by approaching a clone this way, but it's fine for the context of the process I'm documenting. –  Joseph Mainwaring Feb 26 '13 at 20:29
@JosephMainwaring I'm glad to have helped. Please don't forget to accept my answer when you'll be able to do so. –  H2CO3 Feb 26 '13 at 20:30

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.