Cleaning remote Git branches

不问归期 提交于 2019-12-04 15:40:21

You can remove these branches by using this command:

git push origin :branch_name

To remove the BranchA branch:

git push origin :BranchA

To remove the origin/BranchA branch:

git push origin :origin/BranchA

Alternatively you could use git branch -dr BranchA and so on.

Remove every branch except BranchA and origin/BranchA. You may have deleted the origin remote, in which case you should remove the remotes remote and re-add it as the origin remote.

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