Created
April 11, 2012 20:21
-
-
Save cccaldas/2362176 to your computer and use it in GitHub Desktop.
git-restore-file
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
# $1 - commit | |
# $2 - file | |
# usage: git-restore-file {commit} {file} | |
# example: git-restore-file 6fe4857 folder/todo.diff | |
git show $1:"$2" > "$2" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment