Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Development Tools Git Basics Working With Remote Repositories Pushing and Pulling

Jeetender Batra
PLUS
Jeetender Batra
Courses Plus Student 3,028 Points

What is origin remote ? Explanation about it is not clear.

What is origin remote ? Explanation about it is not clear.

1 Answer

Kevin Korte
Kevin Korte
28,149 Points

Origin is the remote repo that your are going to work out of. Most of the time, you'll only be working with one remote repo, and so we set that to origin.

When you specify git push origin master, you're saying push to the master branch of my origin repo. You can check which repo is set up as origin by running git remote -v and it will return to you the origin url. You will usually add your origin repo at the beginning, or if you clone a repo, the origin is set for you as the repo you cloned from.

Here is a little more information:

https://help.github.com/articles/adding-a-remote/