Last Updated: February 25, 2016
·
848
· sheerun

Show all my commits in multiple projects (worklog)

Function to place in ~/.zshrc:

work_log() {
  for i in *; do [ -d "$i/.git" ] && (cd $i; git log --date=short --pretty=format:"%ad $i %s" --author="$(git config --get user.email)") 2> /dev/null; done | sort | tac
}

Usage:

cd ~/Projects
work_log | less # normal usage
work_log | grep -v dotfiles | less # exclude shome project

Result:

2013-10-14 dotfiles Update gitignore
2013-10-09 s3_file_field Bump version
(...)