如何指定Git LFS文件的存储位置? [英] How to specify where Git LFS files will be stored?
问题描述
我只是想知道是否有人可以消除有关使用Git大文件存储的困惑.
I was just wondering if anyone could clear up some confusion I have about using Git Large File Storage.
创建新存储库时,我知道如何使用git lfs track
跟踪某些文件,但是如何指定这些文件的存储位置?
When creating your new repository, I know how to track certain files with git lfs track
, but how do you specify where those files will be stored?
例如,在我正在研究的项目中,有许多png和wav文件.这些正在使用git lfs track
进行跟踪. Git LFS网站说它们存储在远程服务器上,但是我无法找到该信息在我们存储库中的位置.
For example, in the project I am working on there are a number of png and wav files. These are being tracked using git lfs track
. The Git LFS website says that they are stored on a remote server, but I cannot find out where that information is in our repository.
此外,当第二个用户克隆存储库时,项目仅包含指向LFS对象的指针.他们如何找到/使用存储实际文件的远程站点的URL?
In addition, when a second user clones the repo, the project contains only pointers to the LFS objects. How can they find/use the url for the remote where the actual files are stored?
(我们在仓库中使用Bitbucket和本地系统git.)
(We are using Bitbucket and a local system git for our repo.)
推荐答案
Git Lfs网站说它们存储在远程服务器上,但是我无法找到该信息在我们存储库中的位置.
The Git Lfs website says that they are stored on a remote server, but I cannot find out where that information is in our repository.
至少从技术意义上讲,它们没有存储在存储库中. git-lfs添加了第二个区域,即大文件存储区域,它是存储库的对等点.大文件存储在这里.
They're not stored in the repository, at least in a technical sense. git-lfs adds a second area, the large file storage area, which is a peer of your repository. The large files are stored there.
我希望BitBucket在他们的网站上以有意义的方式呈现此信息.
I would have expected BitBucket to present this information in a meaningful way on their website.
此外,当第二个用户克隆存储库时,该项目仅包含指向LFS对象的指针.
In addition, when a second user clones the repo, the project contains only pointers to the LFS objects.
他们需要安装git-lfs.那是负责下载和上传大文件内容的程序.
They need to install git-lfs. That is the program responsible for downloading and uploading the large file content.
这篇关于如何指定Git LFS文件的存储位置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!