1
我有分別跟蹤遠程分支'application/master'和'application/vam-master'的本地分支'master'和vam-master'。如何糾正我的本地分支正在跟蹤的遠程分支?
$ git branch -a
* master
vam-master
remotes/application/master
remotes/application/pvm-master
$ git branch -r
m/ds-2.3.1_r1 -> application/master
application/master
application/vam-master
但由於某種原因,'vam-master'正在跟蹤'application/master',而不是'application/vam-master'。我該如何解決它? 當我做'混帳狀態'時,我得到:
$ git checkout vam-master
Switched to branch 'vam-master'
Your branch and 'application/master' have diverged,
and have 49 and 13 different commit(s) each, respectively.
謝謝。