Skip to content

Instantly share code, notes, and snippets.

@MikelArnaiz
Created June 3, 2022 15:11
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 MikelArnaiz/7658a211dc25c5e1a2901de1844ad689 to your computer and use it in GitHub Desktop.
Save MikelArnaiz/7658a211dc25c5e1a2901de1844ad689 to your computer and use it in GitHub Desktop.
Git. Log commits, branch filtered by author and date
Based on https://stackoverflow.com/a/44494345/1355416
echo "Branch | Message | Author | Date"
git for-each-ref \
--sort=committerdate refs/heads/ \
--format='%(HEAD) %(refname:short) | %(contents:subject) | %(authorname) | %(committerdate:short)' \
| grep "Mikel Arnaiz | 2022-04-06"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment