Skip to content

Instantly share code, notes, and snippets.

@weirdpattern
Last active July 19, 2018 20:23
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
.2018.06.21.delete-local-git-branches
2018.06.21.delete-local-git-branches
# deletes local branch "my-branch"
git branch --delete my-branch
# same as above
git branch -d my-branch
# forces the deletion of the local branch "my-branch"
git branch -D my-branch
git branch <[-D | -d | --delete]> <branch>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment