Skip to content

Instantly share code, notes, and snippets.

@anton-107
Created April 19, 2017 08:15
Show Gist options
  • Save anton-107/94960a6624cc77f1a9a6f753a30e6f2c to your computer and use it in GitHub Desktop.
Save anton-107/94960a6624cc77f1a9a6f753a30e6f2c to your computer and use it in GitHub Desktop.
small command tool to create a git branch with a random name
#!/bin/bash
randomword=`rl -c 1 /usr/share/dict/words`
branchname=anton_${randomword}
git checkout -b ${branchname}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment