Skip to content

Instantly share code, notes, and snippets.

@brianjriddle
Created January 31, 2012 06:36
Show Gist options
  • Save brianjriddle/1709251 to your computer and use it in GitHub Desktop.
Save brianjriddle/1709251 to your computer and use it in GitHub Desktop.
git checkout source code to a specific date
git checkout "`git rev-list master -n 1 --first-parent --before=2008-03-02`"
@jmgbsas
Copy link

jmgbsas commented Sep 9, 2021

I believe 2009-03-30

@brianjriddle
Copy link
Author

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