Git – How to use the Ubuntu command line to pull a project that’s been uploaded onto Git


I (think) I've set up Git correctly. How do I pull my friend's project that he's shared with me so that I can help him with it?

Best Solution

By "uploaded onto Git" I assume you mean "uploaded onto GitHub". That's an important distinction: Git is a source control system. GitHub is a place to host repositories that are controlled via git.

To clone a repository that is hosted on GitHub, first log into your github account and go to the main page ( Off to the right, just under the tiles at the top will be a section labeled "Your Repositories". The one your friend shared with you should be listed. Click on it. Then near the top of this new page, you'll see a git clone url like "". Copy this and then run the command:

git clone