Skip to content

Instantly share code, notes, and snippets.

@bryanchug
Created July 26, 2013 22:37
Show Gist options
  • Save bryanchug/6092719 to your computer and use it in GitHub Desktop.
Save bryanchug/6092719 to your computer and use it in GitHub Desktop.
A script that I use to go through each commit in the branch since the initial commit. I use this when I present a technical talk with code examples or walkthroughs.
#!/bin/bash
for commit in $(git rev-list origin/master | tail -r)
do
git reset --hard $commit
read -p "Press enter to continue..."
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment