Created
February 18, 2022 15:57
-
-
Save oliverspryn/180cf6ab0dc907becacd73ecbf596fd6 to your computer and use it in GitHub Desktop.
Two Git aliases for creating and deleting 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
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