Created
July 26, 2013 22:37
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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