Executing the following command git log --before "Feb 01 2011" returns all of the commits from before the specified date, including their SHA
I’m trying to write a cygwin script that syncs my head to the last commit of a specific month, without me having to find and enter the SHA myself. Any ideas? Thanks!
Executing the following command git log –before Feb 01 2011 returns all of the
Share
Just use
rev-listwith the same options as you would pass to log, plus-n 1to return just the first one.