错误推送后如何删除远程分支

时间:2013-02-04 12:20:18

标签: git

我是git的新手,在我推动的过程中,我在远程分支名称中犯了一个拼写错误。

git push remote/branch_with_typo_mistake.

然后在远程服务器上创建了一个新分支。

我如何完全从服务器中删除这个新的不需要的分支?

1 个答案:

答案 0 :(得分:3)

使用git push remote :branch_with_typo_mistake
请注意分支名称前的冒号。

相关问题