Skip to content

Instantly share code, notes, and snippets.

@AlexGx
Created November 10, 2017 20:21
Show Gist options
  • Save AlexGx/18725f30bda371345c2c8e1e8ae2244d to your computer and use it in GitHub Desktop.
Save AlexGx/18725f30bda371345c2c8e1e8ae2244d to your computer and use it in GitHub Desktop.

Delete Local Branch $ git branch -d branch_name

or

$ git branch -D branch_name # force delete (for ex non-merged)

Delete Remote Branch $ git push <remote_name> --delete <branch_name>

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