Skip to content

Instantly share code, notes, and snippets.

@EmilVarona
Created May 8, 2018 21:54
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 EmilVarona/5205c1d2d1073143920feb5127d56ced to your computer and use it in GitHub Desktop.
Save EmilVarona/5205c1d2d1073143920feb5127d56ced to your computer and use it in GitHub Desktop.
Last 3 months of commits to master branch in CSV
#!/bin/bash
# output last 3 months of commits to CSV file
echo '"CommitHash","Author","Date","CommittComment"'> ~/gitMasterCommits.csv && \
git log --since='last 3 months' --first-parent master --pretty=format:'"%h","%an","%ad","%s"' >> ~/gitMasterCommits.csv && \
open ~/Desktop/ImplMasterCommits.csv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment