From: Siraaj Khandkar Date: Wed, 26 Oct 2016 20:33:52 +0000 (-0400) Subject: Add getting an older version of a file X-Git-Url: https://git.xandkar.net/?a=commitdiff_plain;h=66329b9492ea944c441d8be9961cb41214be7c20;p=git-cheat-sheet.git Add getting an older version of a file --- diff --git a/README.md b/README.md index 81c0cb1..f23a068 100644 --- a/README.md +++ b/README.md @@ -63,3 +63,11 @@ do git push $REMOTE_NAME :refs/tags/$tag done ``` + + +Get an older version of a file +------------------------------ + +```sh +git cat-file -p $COMMIT_DIGEST:$FILE_PATH +```