How do you delete a remotes/origin/{branch}?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
use: git remote prune origin
or use git remote prune origin --dry-run to preview what branches will be removed.
As in git help remote
prune
Deletes all stale remote-tracking branches under . These stale branches have already been removed from the remote repository referenced by , but are still locally available in "remotes/".
With --dry-run option, report what branches will be pruned, but do not actually prune them.
回答2:
git push origin :[branch-name].
回答3:
I suggest you have a look at http://www.git-tower.com/
It's a great GUI for GIT