Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我是 git 新手,在推送期间我在远程分支名称中犯了一个拼写错误。
git push remote/branch_with_typo_mistake.
然后在远程服务器上创建了一个新分支。
我怎样才能从服务器中完全删除这个新的不需要的分支?
使用git push remote :branch_with_typo_mistake. 注意分支名称前的冒号。
git push remote :branch_with_typo_mistake