我希望停止跟踪某些分支。
我使用git branch --set-upstream foo origin/foo
进行了跟踪设置。
我该如何撤销这个操作?
在即将发布的 Git 1.8 中,您将能够执行以下操作:
git branch --unset-upstream
不过,目前您需要像 manojlds建议的那样,使用两个git config --unset
命令。
尝试以下内容:
git config --unset branch.<branch>.remote
git config --unset branch.<branch>.merge
To remove the association between the local and remote branch, and delete the local branch, run:
git config --unset branch.<branch>.remote git config --unset branch.<branch>.merge git branch -d <branch>
git branch --set-upstream
正在被弃用。 - manojlds