developer101
developer101

Reputation: 63

Converting SVN to Git keeping large files using lfs

I'm trying to convert an svn repo to git and i want to keep the large files. These are the commands i use do to it:

git svn clone https://mysvnrepo

Manually create a new repository on our github enterprise site.

git remote add origin https://github.com/myrepo
git push -u origin master

It throws an error saying that the files are over 100 MB. I added the .gitattributes right before the push. All the tutorials that i have seen either don't mention this or tell me to delete the files which i have tried but for some reason it still sees all of the files i deleted and won't let me continue. I know that LFS works for other people but since this is a transfer from svn I'm not sure why this isn't working.

Upvotes: 4

Views: 4033

Answers (1)

Yosef-at-Panaya
Yosef-at-Panaya

Reputation: 706

after you converted yourSVN repo to git you need to convert it to git lfs before pushing it. Here is the complete guide: https://github.com/git-lfs/git-lfs/wiki/Tutorial

Upvotes: 5

Related Questions