-
-
Save airdrummingfool/587f48afec98675210e4 to your computer and use it in GitHub Desktop.
Revisions
-
airdrummingfool revised this gist
Jun 5, 2014 . 2 changed files with 8 additions and 5 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,5 +0,0 @@ This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,8 @@ #!/bin/bash # nth-commit.sh # Usage: `nth-commit.sh n [branch]` branch=${2:-'master'} SHA1=$(git rev-list $branch | tail -n $1 | head -n 1) git checkout $SHA1 -
joeyates created this gist
Oct 30, 2013 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,5 @@ #!/bin/bash git checkout master SHA1=`git rev-list HEAD | tail -n $1 | head -n 1` git checkout $SHA1