Skip to content

Instantly share code, notes, and snippets.

@weirdpattern
Last active July 19, 2018 20:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save weirdpattern/4e0d8c535d879df6d02248c4e30fa9bf to your computer and use it in GitHub Desktop.
Save weirdpattern/4e0d8c535d879df6d02248c4e30fa9bf to your computer and use it in GitHub Desktop.
.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