Skip to content

Instantly share code, notes, and snippets.

  • 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-remote-git-branches
2018.06.21.delete-local-remote-git-branches
# deletes remote and local branch "my-branch"
git branch --delete --remotes origin/my-branch
# same as above
git branch -dr origin/my-branch
git branch <[-dr | --delete --remotes]> <remote>/<branch>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment