Sha*_*aoz 1 git github
我环顾四周,但找不到任何错误的答案.
我创建了一个新分支,但我忘了事先做一些事情,所以我需要删除我刚从本地机器创建的新分支.问题是,当我这样做时,git branch -d <branch_name>我收到此错误: Cannot delete the branch <branch_name> which you are currently working on.
git branch -d <branch_name>
Cannot delete the branch <branch_name> which you are currently working on.
但是我没有做任何事情,我只是想删除它.
删除本地分支以及错误不会再次出现的步骤是什么?
非常感谢
SLa*_*aks 6
您无法从脚下删除当前分支. 在删除分支之前,必须切换到其他分支:
git checkout other-branch
归档时间:
12 年,7 月 前
查看次数:
52 次
最近记录: