Skip to content

Instantly share code, notes, and snippets.

@christianb
Created August 27, 2020 10:32
Show Gist options
  • Save christianb/f7bd62e4528ba4512a94979fb03e0bda to your computer and use it in GitHub Desktop.
Save christianb/f7bd62e4528ba4512a94979fb03e0bda to your computer and use it in GitHub Desktop.
Git checkout commit before date
git checkout `git rev-list -n 1 --first-parent --before="2019-04-01 01:00" master`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment