fir*_*l.1 2 git git-lfs git-lfs-migrate
我在我的存储库上执行了以下操作,现在所有文件都已被此类语句替换(我已将第二行中的值替换为 *s):
version https://git-lfs.github.com/spec/v1
oid sha256:8*****************************************93
size 1003203
Run Code Online (Sandbox Code Playgroud)
lfs 命令运行:
git lfs install
git lfs track "*.xyz"
git lfs migrate import
Run Code Online (Sandbox Code Playgroud)
现在,包括 xyz 文件在内的所有文件都无法读取。我怎样才能撤消这些?
import changes all the files to their SHA keys. Running the following helped my case:
git lfs migrate export --include "*"
Run Code Online (Sandbox Code Playgroud)
我--include "*"在这里使用是因为我在migrate export没有包含标志的情况下运行并且所有文件都被添加到.gitattributes. In case of exclusive files being unreadable, do the following:
git lfs migrate export --include "filepath/filename"
Run Code Online (Sandbox Code Playgroud)