by JangoSteve · 3y ago · 0 comments
alias gitsum='git log --pretty=format:"* %s" --author `git config user.email`' #myself
It gives my git commit messages as a Markdown bullet-point list. It only works per-branch unlike the linked gist, but one cool thing about it is that you can tack on additional git flags, such as --since. For example: gitsum --since 1.day
gitsum --since 1.week
gitsum --since 8.hours
I usually pipe this into my clipboard (on Mac) to easily paste it into the time logging or reporting system: gitsum --since 1.day | pbcopyb) here's the same thing but redone as a git alias (in the [alias] section of your ~/.gitconfig). This would be invoked as `git logme`
logme = !git log --pretty=format:\"* %s\" --author `git config user.email`