Skip to content

Instantly share code, notes, and snippets.

@tomgco
Created July 29, 2013 20:38
Show Gist options
  • Save tomgco/6107598 to your computer and use it in GitHub Desktop.
Save tomgco/6107598 to your computer and use it in GitHub Desktop.
Git repo one week ago
WEEKDATE=`date -f "%Y-%m-%d 13:37" -d '1 week ago'` git checkout `git rev-list -n 1 --before=$WEEKDATE develop`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment