如何从Git-Annex迁移到Git LFS [英] How to migrate from Git-Annex to Git LFS
问题描述
如何在Git-annex中使用Git LFS管理大型文件的存储库?
How can I migrate a repository in which I'm managing large files with Git-annex to manage them with Git LFS?
我应该运行哪些命令来禁用附件并启用LFS?
Which commands should I run to disable annex and enable LFS?
推荐答案
在挣扎了一点之后,我找到了这个等式的答案!
After struggling a little bit, I've found the answer for this equation!
我们需要将附件模式更改为 direct $首先,然后
git annex uninit
,然后将模式改回到 indirect ,然后添加,提交和
We need to change annex mode to direct
first, then git annex uninit
, then change the mode back to indirect
, then add, commit and push.
$ git annex direct
$ git annex uninit
$ git annex indirect
# add, commit and push
# track with LFS (per file, extension, or folder)
$ git lfs track images/*
我正在制作一个即将推出的迁移指南(我会将其链接到此处)。
I'm working on a migration guide that will be available soon (I'll link it here).
更新:这是:) https://docs.gitlab.com/ee /workflow/lfs/migrate_from_git_annex_to_git_lfs.html
这篇关于如何从Git-Annex迁移到Git LFS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!