Skip to content

Instantly share code, notes, and snippets.

@jleeothon
Created September 25, 2016 18:26
Show Gist options
  • Save jleeothon/61569712b407de708ca0604775b201a1 to your computer and use it in GitHub Desktop.
Save jleeothon/61569712b407de708ca0604775b201a1 to your computer and use it in GitHub Desktop.
#!/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