Skip to content

Instantly share code, notes, and snippets.

@tristandl
Created February 9, 2021 05:20
Show Gist options
  • Save tristandl/885d42a4c8cecce7e2439456e8c3da22 to your computer and use it in GitHub Desktop.
Save tristandl/885d42a4c8cecce7e2439456e8c3da22 to your computer and use it in GitHub Desktop.
alias to create a new branch with username/date prefix
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