What is the origin in Git?
In Git, "origin" is a shorthand name for the remote repository that a project was originally cloned from. More precisely, it is used instead of that original repository's URL - and thereby makes referencing much easier.
Note that origin is by no means a "magical" name, but just a standard convention. Although it makes sense to leave this convention untouched, you could perfectly rename it without losing any functionality.
In the following example, the URL parameter to the "clone" command becomes the "origin" for the cloned local repository:
git clone https://github.com/gittower/git-crash-course.git
The Git Cheat Sheet
No need to remember all those commands and parameters: get our popular "Git Cheat Sheet" - for free!
To make working with Git easier, you should try Tower - the popular Git client for Mac and Windows 30 days for free!
Learn More
- Check out the Remote Repositories – Desktop GUI edition chapter in our free online book
- More frequently asked questions about Git & version control
Download the Cheat SheetFree
Get 18 of our most popular Cheat Sheets in one handy ZIP!

Thanks! Please Check Your Inbox!
Want to win one of our awesome Tower shirts?
Tell your friends about the package!
