Created
November 9, 2015 15:14
-
-
Save Nemo64/72161666761d1c0e8f68 to your computer and use it in GitHub Desktop.
git history for multiple folders
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
#!/usr/bin/env bash | |
#!/usr/bin/env bash | |
REPS=`find /home/dev/Workspace -maxdepth 4 -type d -name ".git"` | |
USERNAME=`git config --get user.name` | |
echo "search for history of ${USERNAME}" | |
for REP in $REPS | |
do | |
cd "${REP}" | |
cd ../ | |
pwd | |
git log $1 --all --author="${USERNAME}" --pretty=format:"%cd - %s" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment