没有本地存储的git lfs

时间:2017-02-22 08:45:09

标签: git git-lfs

我已将我的存储库迁移到LFS,发现.git / lfs / objects太大了。 我是否可以将lfs配置为不存储任何内容,以防需要将文件直接下载到存储库文件夹?

1 个答案:

答案 0 :(得分:0)

似乎这是不可能的。看一下git-lfs official specification

...

The smudge filter runs as files are being checked out from the
Git repository to the working directory. Git sends the content
of the Git blob as STDIN, and expects the content to write to
the working directory as STDOUT.

- Read 100 bytes.
- If the content is ASCII and matches the pointer file format:
  . Look for the file in .git/lfs/objects/{OID-PATH}.
  . If it's not there, download it from the server.
  . Write its contents to STDOUT
- Otherwise, simply pass the STDIN out through STDOUT.

...