-
If the branches are only local, you can use -d if the branch has been merged:
git branch -d branch-name
-
If the branch contains code you never plan on mergin, use -D instead:
git branch -D branch-name
-
If the branch is in the upstream repo you can remove the remote reference by:
git push origin :branch-name
Last active
September 1, 2018 01:32
-
-
Save danieldogeanu/d093c7c93e9bff83b250b54111798573 to your computer and use it in GitHub Desktop.
How to delete branches from GitHub/BitBucket.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment