Questions tagged «git-sparse-checkout»

21
从存储库检索单个文件
从远程git存储库中获取单个文件的内容的最有效的机制是什么(相对于所传输的数据和所使用的磁盘空间)? 到目前为止,我已经设法提出了: git clone --no-checkout --depth 1 git@github.com:foo/bar.git && cd bar && git show HEAD:path/to/file.txt 这似乎仍然过高。 从仓库中获取多个文件呢?
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.