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!
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
remote branch / remote repo
This video got quite confusing:
remote branch is out of sync with the actual remote repo
I understand a remote repo, but what is a remote branch? Was this commit done in a branch in the remote remote, and therefore
master/origin (which is the same as
master/remote didn't detect the commit?
Jay McGavrenTreehouse Teacher
When you do a
git fetch, every commit that exists in the remote repo gets pulled over to your local repo (except for the commits you already have). The commits themselves are not connected together in any way, except that each commit points to a parent commit. But the commits themselves have no concept of what branch they're on.
git fetch also pulls over all the branches from the remote repo. However, an ordinary branch on the remote repo becomes a remote branch in your local repo. So the
fix-issue-42 branch becomes
origin/fix-issue-42 in your local repo - a remote branch.