我想停止跟踪某些分支。我使用git branch --set-upstream foo origin/foo设置了跟踪。
如何撤消此操作?
发布于 2012-10-16 20:05:32
请尝试以下操作:
git config --unset branch.<branch>.remote
git config --unset branch.<branch>.merge发布于 2012-10-16 20:12:49
在即将发布的git 1.8中,您将能够做到:
git branch --unset-upstream但是,目前您必须执行as manojlds suggests,并使用两个git config --unset命令。
发布于 2012-10-16 20:01:27
如果我理解为您想要删除本地和远程分支之间的关联...我认为最简单的方法之一应该是编辑配置文件(.git/ config )。
You can find something related to your question here
要删除本地分支和远程分支之间的关联,并删除本地分支,请运行以下命令:
git配置--取消设置branch..remote git配置--取消设置branch..merge git分支-d
https://stackoverflow.com/questions/12913988
复制相似问题