3

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.

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 Answers1

2

Found it:
git cat-file blob <sha> | git lfs smudge

markonius
  • 625
  • 6
  • 25