Skip to content

Instantly share code, notes, and snippets.

@Nemo64
Created November 9, 2015 15:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Nemo64/72161666761d1c0e8f68 to your computer and use it in GitHub Desktop.
Save Nemo64/72161666761d1c0e8f68 to your computer and use it in GitHub Desktop.
git history for multiple folders
#!/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