简体   繁体   English

我在大型文件存储中有一些文件的git repo。 如何更改这些服务器存储在什么服务器上?

[英]I have a git repo with some files in Large File Storage. How can I change what server these are stored in?

I got Git LFS and set it up according to this website: https://git-lfs.github.com/ 我得到了Git LFS并根据以下网站进行了设置: https : //git-lfs.github.com/

On one of my repos, I tracked a few large files, and that seemed to be working well. 在我的一个回购中,我跟踪了一些大文件,而且看起来运行良好。

I want to move my storage of these large files to an S3 bucket, and I found this project: https://github.com/meltingice/git-lfs-s3 我想将这些大文件的存储移动到S3存储桶中,然后找到了这个项目: https : //github.com/meltingice/git-lfs-s3

I installed git-lfs-s3 according to the instructions on the README, set all the appropriate environment variables regarding S3 access, and changed my .gitconfig to reference the new server. 我根据自述文件上的说明安装了git-lfs-s3,设置了有关S3访问的所有适当环境变量,并更改了.gitconfig以引用新服务器。

However, I'm not sure how to trigger the moving of my large files from the server I was on to the new server. 但是,我不确定如何触发将大文件从原来的服务器移至新服务器。 Additionally, I tried tracking some files on another repo after I made this change, and the files were pushed into regular GitHub. 此外,进行此更改后,我尝试跟踪另一个存储库上的某些文件,并将这些文件推送到常规GitHub中。

I tried looking at the git lfs logs through the command line, but they appeared to be empty. 我尝试通过命令行查看git lfs日志,但它们似乎为空。

What's the way to trigger the movement of this data? 触发该数据移动的方式是什么? And is there anything else I can do to get more information about what's going on? 我还能做些什么来获取有关正在发生的事情的更多信息?

Since the files are already tracked by git-lfs, it should work if you just push them to another remote with the new lfs location inside your .gitconfig. 由于文件已经被git-lfs跟踪,因此如果您将它们推送到.gitconfig中具有新lfs位置的另一个远程目录,则应该可以使用。 Did you already try this out ? 您已经尝试过了吗?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM