删除分支,强制删除

删除

如果去删除一个未合并的分支会有提示。
1
2
3
4
git br -d feat/A
error: the branch 'feat/A' is not fully merged
hint: If you are sure you want to delete it, run 'git branch -D feat/A'
hint: Disable this message with "git config advice.forceDeleteBranch false"

执行强制删除

1
2
git br -D feat/A
Deleted branch feat/A (was 83ec5ad).
Licensed under CC BY-NC-SA 4.0
Built with Hugo
Theme Stack designed by Jimmy