Kinda like how I can do git cat-file blob <object-hash>
and get the file's raw data, I would like to get an old revision of a file tracked by LFS, so that I can save it somewhere. How would I do that.
Asked
Active
Viewed 1,643 times
3

markonius
- 625
- 6
- 25
-
Possible duplicate of [How to print a Git LFS file's old version to stdout (git show / git cat-file for LFS)?](https://stackoverflow.com/questions/50760795/how-to-print-a-git-lfs-files-old-version-to-stdout-git-show-git-cat-file-for) – Koterpillar Feb 06 '19 at 03:54
1 Answers
2
Found it:
git cat-file blob <sha> | git lfs smudge

markonius
- 625
- 6
- 25
-
1
-
1@CharlesLanglois oops, it was supposed to be `git cat-file`, thanks for mentioning it – markonius May 04 '21 at 20:23