Skip to content

Instantly share code, notes, and snippets.

@Programie
Created August 29, 2017 07:37
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Programie/87f02cd8b7129aabcb17fbc0e8f120f7 to your computer and use it in GitHub Desktop.
Save Programie/87f02cd8b7129aabcb17fbc0e8f120f7 to your computer and use it in GitHub Desktop.
Show all commits since a specific date in all cloned git repositories (cloned to $GIT_HOME)
#! /bin/bash
SINCE="$1"
if [ -z "${SINCE}" ]; then
echo "Usage: $0 <since>"
exit 1
fi
for REPO in `find ${GIT_HOME} -name .git -type d`; do
echo ${REPO}
GIT_USER=$(git -C "${REPO}" config user.name)
git -C "${REPO}" --no-pager log --author "${GIT_USER}" --since "${SINCE}"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment