PuppetHero is a monthly newsletter that will help you supercharge your web-based workflows. With just a little bit of code & time, you can automate repetitive tasks and save time. Sign up, for free, today! The PuppetHero Digest @ PuppetHero.com!

A quick tip for developers who solely use Git on the command line in a bash terminal. Add Git branch autocompletion via Homebrew:

brew install bash-completion

Then add the following to ~/.bash_profile:

if [ -f `brew --prefix`/etc/bash_completion.d/git-completion.bash ]; then
  . `brew --prefix`/etc/bash_completion.d/git-completion.bash

This will enable you to type git checkout or git branch and hit the TAB to have a list of available branches show up. It’s very similar to the built in bash autocomplete for files and folders.


Thanks for reading. ✊🏿