rogerxu / git-tips

Tips for Git
Apache License 2.0
2 stars 3 forks source link

Delete Remote Branch #6

Open rogerxu opened 8 years ago

rogerxu commented 8 years ago

How to delete remote branch?

rogerxu commented 8 years ago

Delete remote branch

$ git push origin -d branch_to_delete
$ git push origin :branch_to_delete

Delete local branch

$ git branch -D branch_to_delete
rogerxu commented 7 years ago

Need to write in wiki