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
(...)
Written by Adam Stankiewicz
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Shell
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#