Re: Question about "git pull --rebase"
From: Francis Moreau <hidden>
Date: 2016-06-15 22:47:43
On Sun, Nov 15, 2009 at 12:29 AM, Johan 't Hart [off-list ref] wrote:
This does not update any remote tracking branches, but it will rebase your foo branch on the remote master branch (which is what you want) It could also be done with: git pull --rebase origin master:origin/master This will also update your remote tracking branch refs/remotes/origin/master to match the master branch on the remote repo. Your foo branch will then be rebased onto it.
BTW, this seems to be not exact. $ git pull --rebase origin master:origin/master fetches the 'master' branch on the remote repo, then creates a new branch 'origin/master', which is updated with the fetched branch. To update the remote tracking branch refs/remotes/origin/master, I need to issue: $ git pull --rebase origin master:remotes/origin/master BTW2, it looks like if the <dst> local ref doesn't exist the it will be created. This something that appears very lately in the man page (actually I can see the information only in the last example). This could be part of the <refspec> defintion. Thanks -- Francis