Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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