List commits between two dates in Git

git log --date=short --since "JAN 1 2022" --until "JUL 1 2022" --pretty=format:'"%h","%an","%ad","%s"'Code language: Bash (bash)

To print into a CSV file:

git log --date=short --since "JAN 1 2022" --until "JUL 1 2022" --pretty=format:'"%h","%an","%ad","%s"' > ~/Desktop/log.csvCode language: Bash (bash)

References:
https://git-scm.com/docs/git-log
https://stackoverflow.com/a/27313500


Posted

in

by

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.