我可以“撤消”`git lfs签出吗?

时间:2019-11-12 16:19:23

标签: git git-lfs

我运行了以下命令

git lfs migrate import --everything --include="*.pdf"
git reflog expire --expire-unreachable=now --all
git gc --prune=now
git push origin master

我最终只能得到1 kB的本地文件。我了解到我还需要

git lfs checkout 

要获取“真实文件”,我只是想知道是否存在一些命令来再次隐藏大文件,即“ undo git lfs checkout”?

关于git lfs prune:这不会改变任何内容:

$ git status
On branch master
Your branch is up to date with 'origin/master'.
nothing to commit, working tree clean

存在原始文件,然后

$ git lfs prune
* 36 local objects, 29 retained
Pruning 7 files, (935 KB)
* Deleted 7 files

$ git status
On branch master
Your branch is up to date with 'origin/master'.
nothing to commit, working tree clean

文件仍然存在...

0 个答案:

没有答案