2017-06-22 139 views
2

如果我運行Git的很多遙控器

$ 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 

回答

3

如果你想刪除第二個遙控器(而不是看它的分支機構),然後執行:

git remote rm composer 

這不會「刪除」什麼,但你會再看到遙控器上的「作曲家」

所有分支