I have a repository on an old githost instance and i'm trying to migrate it over to gitlab.com. I'm using their instructions for migrating, but because this repository uses LFS, i am getting some errors that i cannot figure out how to resolve. Here are the commands I'm running
cd repo
git remote rename origin old-origin
git remote add origin git@gitlab.com:group/repo.git
git push -u origin --all
git push -u origin --tags
And here is a sample of the response i get from git
on the first push
command:
remote: GitLab: LFS objects are missing. Ensure LFS is properly set up or try a manual "git lfs push --all".
To https://gitlab.com/group/repo.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://gitlab.com/group/repo.git'
I have tried the suggested command (git lfs push --all
) and that command is not valid. I have also tried git lfs push origin master
and that results in:
Uploading LFS objects: 100% (29/29), 2.4 GB | 0 B/s, done
I cannot find anything on the Gitlab docs, so i'm asking for this community's help. Thanks!
Edit: I have also tried using https
instead of SSH repo origin and that results in no difference.