git刪除遠(yuǎn)程分支 git push origin --delete [branch_name] 刪除本地分支區(qū)別 git branch -d 會在刪除前檢查merge狀態(tài)(其與上游分支或者與head)。 git branch -D 是git branch --delete --force的簡寫,它會直接刪除。