Created
February 9, 2021 05:20
-
-
Save tristandl/885d42a4c8cecce7e2439456e8c3da22 to your computer and use it in GitHub Desktop.
alias to create a new branch with username/date prefix
This file contains hidden or 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 config --global alias.bc '!f() { git switch -c `whoami`/`date +"%Y%m%d"`-$1; }; f' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment