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 trialMark Chesney
11,747 Pointsremote branch / remote repo
Hi,
This video got quite confusing:
At 6:11
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?
Thank you
1 Answer
Jay McGavren
Treehouse TeacherWhen 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.
However a 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 origin
repo's fix-issue-42
branch becomes origin/fix-issue-42
in your local repo - a remote branch.
Mark Chesney
11,747 PointsMark Chesney
11,747 PointsAh, I see. It's beginning to make sense. Thanks Jay!