Skip to content

Instantly share code, notes, and snippets.

@WillSams
Last active April 17, 2020 12:26
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 WillSams/93f3030b07c0f596033bfdcdd2910bec to your computer and use it in GitHub Desktop.
Save WillSams/93f3030b07c0f596033bfdcdd2910bec to your computer and use it in GitHub Desktop.
Deleting a Git Branch
git push origin --delete myfeature # delete remote branch
git branch -d myfeature # delete local branch
#git branch -dr origin/myfeature # delete local remote tracking branch
git fetch origin -p # delete (prune from tree) multiple obsolete tracking branches
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment