Created
January 24, 2022 11:45
-
-
Save ToastShaman/70f245a1db19b9e869c521df4c10d73b to your computer and use it in GitHub Desktop.
Create a git branch with a random name (OSX)
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
function git_random_branch() { | |
randomword=`shuf /usr/share/dict/words | head -1 | awk '{print tolower($0)}'` | |
branchname="kevin_${randomword}" | |
git create-branch -r ${branchname} | |
} | |
git_random_branch() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment