2017-02-22 2 views
0

リポジトリをLFSに移行しましたが、.git/lfs/objectsが大きすぎます。 lfsはリポジトリフォルダに直接ファイルをダウンロードする必要がある場合に備えて、そこに何も保存しないように設定できますか?ローカルストレージのないgit lfs

答えて

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. 

... 
+0

我々はそれが目標を達成します「STDOUTにその内容を書く」直後「ファイルを削除し、」追加する場合。私が間違っている? – Michael

+0

これはどのようにして行いますか?実際には.git/lfs/objectsを定期的に削除するだけです(cron)。 –

+0

git-lfsデベロッパーまでです。彼らは、別のフラグを追加し、ダウンロードしたデータをスキップすることができます。私はそれがかなり簡単なアプローチだと思う。 cronの場合、これは「組織」レベルでは実行できません。 – Michael

関連する問題