Skip to content

Instantly share code, notes, and snippets.

@oliverspryn
Created February 18, 2022 15:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oliverspryn/180cf6ab0dc907becacd73ecbf596fd6 to your computer and use it in GitHub Desktop.
Save oliverspryn/180cf6ab0dc907becacd73ecbf596fd6 to your computer and use it in GitHub Desktop.
Two Git aliases for creating and deleting branches
git new my_branch
git del my_branch
# To use, add this to your ~/.gitconfig file
[alias]
del = branch -D
new = checkout -b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment