I wanted to add this question as a comment to the answer of @KevinBallard here What's the difference "origin master" vs "origin/master", but my comment was to long.
So my question is:
If I am in a branch called topic
, is it possible to just write git rebase master
instead of git rebase origin/master
? Or are there really two different local master
branches? One being a copy of the remote master branch and one being my own master branch? If so: When I git pull
are both local master branches (one called origin/master and the other just called master) updated? I am very confused …
Or maybe it is like this: origin/master
is a local copy of the real remote master branch to which the remote was fetched (copied, i.e. just overwritten), and my local branch called master
is only changed, when I git merge origin/master
(or git rebase …
). That is: When I git pull origin master
both my local copy origin/master
and master
are updated/merged. Of course assuming that I am currently in the master branch (i.e. git checkout master
was my last checkout).