home
/
code
/
git-cheat-sheet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b5a37a6
)
Add getting an older version of a file
author
Siraaj Khandkar
<siraaj@khandkar.net>
Wed, 26 Oct 2016 20:33:52 +0000
(16:33 -0400)
committer
Siraaj Khandkar
<siraaj@khandkar.net>
Wed, 26 Oct 2016 20:33:52 +0000
(16:33 -0400)
README.md
patch
|
blob
|
blame
|
history
diff --git
a/README.md
b/README.md
index
81c0cb1
..
f23a068
100644
(file)
--- 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
+```
This page took
0.028041 seconds
and
4
git commands to generate.