Skip to content

Instantly share code, notes, and snippets.

@zld
Created June 29, 2017 02:42
Show Gist options
  • Save zld/edc771237f549b7a505e57fd3537fbcc to your computer and use it in GitHub Desktop.
Save zld/edc771237f549b7a505e57fd3537fbcc to your computer and use it in GitHub Desktop.
List what I have done yesterday
rm /Users/zld/Dev/yk/ylog
print_log() {
git log --since=yesterday.midnight --author=ZhuLida --pretty=format:%s | perl -pe '$_ .= "\n" unless /\n/' >> /Users/zld/Dev/yk/ylog
}
for repo in $(ls /Users/zld/Dev/yk/) /Users/zld/Dev/yk/24h/inke_ios
do
cd $repo &> /dev/null
print_log &> /dev/null
cd /Users/zld/Dev/yk/ &> /dev/null
done
cat /Users/zld/Dev/yk/ylog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment