Git delete branch local and remote

Delete a branch locally:

git branch -d the-branch-name

Delete a branch on remote:

git push origin --delete the-branch-name

References

 

Post written by Ed Reckers

Founder and lead web development consultant at Red Bridge Internet : San Francisco WordPress Developers and Consultants.

Leave a Reply