Created
June 7, 2011 13:12
-
-
Save juanje/1012207 to your computer and use it in GitHub Desktop.
Delete a remote 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
# Let's say you've created a branch 'my_changes' you have pushed to Github, but now | |
# you want to remove it. | |
# Let's also set the remote which point to your Github account is 'origin' | |
# These are the needed steps: | |
# 1 - Delete the branch locally | |
git -D my_changes | |
# 2 - Push those changes (the delete) to Github | |
git push origin :my_changes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment