Skip to content

Instantly share code, notes, and snippets.

@jookyboi
Last active September 21, 2017 19:15
Show Gist options
  • Save jookyboi/6877917 to your computer and use it in GitHub Desktop.
Save jookyboi/6877917 to your computer and use it in GitHub Desktop.
Delete a Git branch remotely.
g push origin --delete [branch_name]
@gregorynicholas
Copy link

gregorynicholas commented Sep 9, 2016

@jookyboi or use shorthand:

$ git push origin :{branch_name}
# ----------------^  notice the colon

great why to try this out is

$ git push origin :master

@ Lolz ^^^

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment