删除远程叉

时间:2014-12-24 16:08:30

标签: git github

我想删除bitbucket跟踪分支。我不确定我使用的术语是否正确,这可能会导致我无法通过Google获得解决方案。

这就是我所拥有的:

tom@thinkpad:~/example$ git remote -v
bitbucket   git@bitbucket.org:TomLeo/example.git (fetch)
bitbucket   git@bitbucket.org:TomLeo/example.git (push)
origin  git@github.com:TomLeo/example.git (fetch)
origin  git@github.com:TomLeo/example.git (push)

这就是我想要的:

tom@thinkpad:~/example$ git remote -v
origin  git@github.com:TomLeo/example.git (fetch)
origin  git@github.com:TomLeo/example.git (push)

1 个答案:

答案 0 :(得分:6)

你可以运行:

git remote remove bitbucket

从git-remote手册页:

  

git remote remove<名称>

     

删除,rm

   Remove the remote named <name>. All remote-tracking branches and configuration settings for the remote are removed.