Created
August 29, 2014 01:29
-
-
Save behrangsa/0aba517163546409d733 to your computer and use it in GitHub Desktop.
Git Branches
This file contains 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
for proj in ~/Projects/* ; do | |
if [[ -d "$proj" && -d "$proj/.git" ]]; then | |
echo -n "$proj: " | |
cd $proj && git branch | sed -n '/\* /s///p' | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment