Skip to content

Instantly share code, notes, and snippets.

@dmitrinesterenko
Last active August 29, 2015 14:11
Show Gist options
  • Save dmitrinesterenko/e5a21bdf643644bd9621 to your computer and use it in GitHub Desktop.
Save dmitrinesterenko/e5a21bdf643644bd9621 to your computer and use it in GitHub Desktop.
Check git history for a current repo for the last x days
git log --since `date -d "-30 day" "+%F"` --pretty=medium
@dmitrinesterenko
Copy link
Author

Optionally do a grep to search for particular authors:

git log --since `date -d "-30 day" "+%F"` --pretty=medium | grep dmitrinesterenko

@dmitrinesterenko
Copy link
Author

Note the above works on Ubuntu OS but not on Mac OSX terminal, the reason is in difference of the date command, use the equivalent below

git log --since `date -v "-30d" "+%F"` --pretty=medium

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment