Skip to content

Instantly share code, notes, and snippets.

@dunglas
Created July 17, 2017 09:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save dunglas/27f00763d93b24b78a5ad363be2f0c19 to your computer and use it in GitHub Desktop.
Save dunglas/27f00763d93b24b78a5ad363be2f0c19 to your computer and use it in GitHub Desktop.
Extract interesting commits from a Git repository
# All commits
git log --all --after="2016-01-01 00:00" --before="2017-01-01 00:00" --pretty=format:'%C(yellow)%h %Cred%ad %Cblue%an%Cgreen%d %Creset%s' --date=short --no-merges --first-parent master --author-date-order --reverse > ~/cir/api-platform-standard-edition
# Commits from a specific author
git log --all --after="2016-01-01 00:00" --before="2017-01-01 00:00" --pretty=format:'%C(yellow)%h %Cred%ad %Cblue%an%Cgreen%d %Creset%s' --date=short --no-merges --first-parent master --author-date-order --reverse --author="dunglas@gmail.com"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment