Skip to content

Instantly share code, notes, and snippets.

@jonnii
Created August 30, 2012 02:57
Show Gist options
  • Save jonnii/3521899 to your computer and use it in GitHub Desktop.
Save jonnii/3521899 to your computer and use it in GitHub Desktop.
#codegolf bash
find . -type d -maxdepth 1 -exec sh -c '(cd {} && git branch -l | grep $1 && pwd)' ';'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment