Get old revision of a git-lfs file

元气小坏坏 提交于 2021-01-28 18:54:40

问题


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.


回答1:


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



来源:https://stackoverflow.com/questions/54367756/get-old-revision-of-a-git-lfs-file

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!