Last active
July 19, 2018 20:23
-
-
Save weirdpattern/58eaf37ccd9dd54f455de53174e1a131 to your computer and use it in GitHub Desktop.
.2018.06.21.delete-local-remote-git-branches
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2018.06.21.delete-local-remote-git-branches |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# deletes remote and local branch "my-branch" | |
git branch --delete --remotes origin/my-branch | |
# same as above | |
git branch -dr origin/my-branch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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