Skip to content

Instantly share code, notes, and snippets.

@bryant1410
Created February 20, 2020 01:54
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 bryant1410/d6dd72fbeede64a2f4a9dcdc916ada04 to your computer and use it in GitHub Desktop.
Save bryant1410/d6dd72fbeede64a2f4a9dcdc916ada04 to your computer and use it in GitHub Desktop.
Find any commit from any repo for a given author and between given dates
#!/usr/bin/env bash
for d in ~/repos/*; do
pushd "$d" > /dev/null
if [ -d .git ]; then
echo $d
echo "branch $(git rev-parse --abbrev-ref HEAD)"
git --no-pager log --color=always --all --oneline --graph --decorate --after 2019-04-20 --before 2019-05-15 --author='Santiago Castro'
fi
popd > /dev/null
done | less -r
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment