如果我跑
$ git branch -a
我得到了
* develop
remotes/composer/compliance
remotes/composer/develop
remotes/composer/master
remotes/origin/HEAD -> origin/develop
remotes/origin/compliance
remotes/origin/develop
remotes/origin/master
如何删除所有remotes/composer
?
我只想保留
remotes/origin/HEAD -> origin/develop
remotes/origin/compliance
remotes/origin/develop
remotes/origin/master
答案 0 :(得分:3)
如果要删除第二个遥控器(而不是看其分支),请执行以下操作:
git remote rm composer
这不会“删除”任何内容,但您将停止查看远程“作曲家”上的所有分支