How to migrate from Git-Annex to Git LFS

戏子无情 提交于 2019-12-24 10:23:30

问题


How can I migrate a repository in which I'm managing large files with Git-annex to manage them with Git LFS?

Which commands should I run to disable annex and enable LFS?


回答1:


After struggling a little bit, I've found the answer for this equation!

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).

UPDATE: Here it is :) https://docs.gitlab.com/ee/workflow/lfs/migrate_from_git_annex_to_git_lfs.html



来源:https://stackoverflow.com/questions/42146383/how-to-migrate-from-git-annex-to-git-lfs

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!