Welcome to the Treehouse Community
Looking to learn something new?
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.