Skip to content

Instantly share code, notes, and snippets.

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