Git: Checkout a branch at a specific date
Estimated time to read: 1 minute.
Sometimes one needs to grab a copy of your source repo at a specific point in time. This is the command to do so. Update the date and branch (e.g dev) according to your needs.
git checkout `git rev-list -n 1 --before="2017-01-01 00:00" dev`