Simply Hacking home

Removing a remote branch in Git

This is a repost from my old blog

This is something I’ve had to checkup a few times so I figured it would be useful both for myself and for others to keep around in a blog post.

To remove a remote branch you created in Git just push to it like:

$ git push origin :name-of-branch
blog comments powered by Disqus
Fork me on GitHub
Get Keyboard Pilot
Automatic layout switching
Download 30 day trial
Fork me on GitHub