Skip to content

Instantly share code, notes, and snippets.

@myusuf3
Created December 17, 2011 21:19
Show Gist options
  • Save myusuf3/1491434 to your computer and use it in GitHub Desktop.
Save myusuf3/1491434 to your computer and use it in GitHub Desktop.
Deleting git branches locally and on remote.
# deleting a local branch
git branch -D bugfix
Deleted branch bugfix (was 2a14ef7).
# deleting a remote branch
git push origin :bugfix
To [email protected]:myusuf3/project.git
- [deleted] bugfix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment