How to delete remotes/origin/{branch}?

匿名 (未验证) 提交于 2019-12-03 08:46:08

问题:

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].

Source: http://progit.org/book/ch3-5.html



回答3:

I suggest you have a look at http://www.git-tower.com/

It's a great GUI for GIT



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!