checkout a commit in git based on a time in the past
git checkout HEAD@{'1 month ago'}
Will checkout the commit dating from 1 month ago, whatever the commit is.
The time span can of course be changed (2 weeks ago for example).
Written by padawin
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Debug
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#