Created
January 31, 2012 06:36
-
-
Save brianjriddle/1709251 to your computer and use it in GitHub Desktop.
git checkout source code to a specific date
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git checkout "`git rev-list master -n 1 --first-parent --before=2008-03-02`" |
I believe 2009-03-30
Yes the format is yyyy-mm-dd
2009-03-30
2020-12-31
etc...
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
yyyy-mm-dd or yyyy-dd-mm? 2009-03-30 or 2009-30-03 ?
mm 1 to 12 , dd 1 to 31 , the example is ambiguous