Skip to content

Instantly share code, notes, and snippets.

@mtrl
Created March 12, 2012 11:04
Show Gist options
  • Select an option

  • Save mtrl/2021201 to your computer and use it in GitHub Desktop.

Select an option

Save mtrl/2021201 to your computer and use it in GitHub Desktop.
Daily gitosis status
#!/bin/sh
LOGFILE=/home/git/gitdailystatus.log
[email protected]
echo '' > $LOGFILE
for f in /home/git/repositories/*
do
cd $f
echo "-----------" >> $LOGFILE
pwd >> $LOGFILE
git log --since=`date --date='today' +%Y-%m-%d` --until=`date --date='tomorrow' +%Y-%m-%d`--date-order >> $LOGFILE
echo "-----------" >> $LOGFILE
done
mail -t $RECIPIENT -s 'git daily status' < $LOGFILE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment