Created
September 25, 2016 18:26
-
-
Save jleeothon/61569712b407de708ca0604775b201a1 to your computer and use it in GitHub Desktop.
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
#!/bin/bash | |
# tip: run with `./hashes.sh | column -t` | |
set -eu | |
for g in `find . -name .git` | |
do | |
d=$(basename $(dirname $g)) | |
h=$(git --git-dir $g rev-parse HEAD) | |
echo "$d $h" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment