Created
June 9, 2017 17:24
-
-
Save varhub/ca6dfbceec0db5526d824451132dd951 to your computer and use it in GitHub Desktop.
git list_hashes
This file contains hidden or 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
_pwd=$PWD | |
find . -name '.git' -type d | while read repo | |
do | |
repo_dir=$(dirname $repo) | |
cd $repo_dir | |
echo "$(git rev-parse --short HEAD) $(git rev-parse --show-toplevel)" | |
#echo -e "$(git rev-parse --show-toplevel) \t $(git rev-parse HEAD)" | |
cd $_ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment