Skip to content

Instantly share code, notes, and snippets.

@salahm
Forked from dunglas/gist-history.sh
Created July 17, 2017 10:09
Show Gist options
  • Save salahm/87902c1bf683f590e98b44ce9d65d46b to your computer and use it in GitHub Desktop.
Save salahm/87902c1bf683f590e98b44ce9d65d46b 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