Featured image of post Git 刪除分支

Git 刪除分支

Main

刪除遠端分支

1
git push origin :<branch>

刪除本地分支

1
git branch -d <branch>

Example

1
2
3
4
5
6

# 刪除遠端分支
git push origin :fix-order

# 刪除本地分支
git branch -d fix-order
Licensed under CC BY-NC-SA 4.0
comments powered by Disqus
Built with Hugo
Theme Stack designed by Jimmy