I've been using Git reasonably successfully (perhaps that's an optimistic evaluation) for going on 2 years now, but have admittedly been doing so somewhat blindly. For whatever reason, I've begun to get much more curious about the internals and have been digging into remote tracking branches of late. They make sense on the whole, but I'm left with this question:
When I clone a repository and all of the remote tracking branches are created, what is the "cloned repository's currently active branch" (quoted from the
git-clone
documentation)?
If I were cloning from a colleague's repository, I suppose this would be the tracking branch of whichever local branch has the * in front of it in the git branch
results, but what if I were cloning from Github? Is it just the branch that I've selected in the interface? Initial tests indicate that this is not the case.
Thanks.