Skip to content

Instantly share code, notes, and snippets.

@h4ckninja
Created April 22, 2017 06:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save h4ckninja/44e8cd2b57e1b41a618e8e15d7e6f311 to your computer and use it in GitHub Desktop.
Save h4ckninja/44e8cd2b57e1b41a618e8e15d7e6f311 to your computer and use it in GitHub Desktop.
Checkout all git revisions
git log --format=oneline | cut -d " " -f 1 > log.txt; for rev in $(cat log.txt); do mkdir $rev && git --work-tree=./$rev/ checkout $rev -- .;done;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment