The question is simple: is refs/heads/master the same thing as refs/remotes/origin/master? If it is not in some cases, how can I know when it is not and what it is then?
The question is simple: is refs/heads/master the same thing as refs/remotes/origin/master ? If it
Share
They are two different symbolic names that can point to different things.
refs/heads/masteris a branch in your working copy namedmaster. Frequently that is a tracking branch ofrefs/remotes/origin/masterbecauseoriginis the default name for the remote created bygit cloneand its primary branch is usually also namedmaster.You can see the difference between them with
git rev-list refs/heads/master..refs/remotes/origin/masterwhich will be empty if they are the same and will otherwise list the commits between them.