Skip to content

Instantly share code, notes, and snippets.

@itiut
Created December 16, 2016 14:04
Show Gist options
  • Save itiut/85faf4b3cba864dc489dec23981a32cc to your computer and use it in GitHub Desktop.
Save itiut/85faf4b3cba864dc489dec23981a32cc to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
ghq list -p | while read dir; do
{
cd $dir
if git rev-parse --is-inside-work-tree &> /dev/null; then
echo "$PWD (git:$(git rev-parse --abbrev-ref HEAD))"
else
echo $PWD
fi
} &
done
wait
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment