Skip to content

Instantly share code, notes, and snippets.

@mikaelz
Created June 1, 2017 07:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikaelz/75bb868078923c01213de98170d9fd72 to your computer and use it in GitHub Desktop.
Save mikaelz/75bb868078923c01213de98170d9fd72 to your computer and use it in GitHub Desktop.
List last month commits alias in ~/.gitconfig
[alias]
last-month = !git log --reverse --pretty=format:'%cd %h %s' --date=short --no-merges --since=$(date -d \"$(date +%Y-%m)-01 last month\" \"+%Y-%m-01\") --author=$(git config user.email)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment