From 66329b9492ea944c441d8be9961cb41214be7c20 Mon Sep 17 00:00:00 2001 From: Siraaj Khandkar Date: Wed, 26 Oct 2016 16:33:52 -0400 Subject: [PATCH] Add getting an older version of a file --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) 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 +``` -- 2.20.1