Add this snippet to your global ~/.gitconfig
file to simply query commits per quarter of a year.
git (q1|q2|q3|q4|quarter1|quarter2|quarter3|quarter4) (2012|2013|2014...any year)
- will list all of your commits (based on your user name)
- that you've made from January to March in the year 2012
- in reverse order
- with one line per commit (use
git quarter1 2012
for the full message) - all additional parameters after the year will be passed to the
git log
command that is used to implement this macro - for example,
git q2 2010 --patch
lists all diffs for each commit.