Nexus as gitlfs store

We want depoly nexus oss for gitlfs repository but it’s can not work as can fairly be expected.
‘’’
apt-get install git-lfs
git lfs install
cd project
git config -f .lfsconfig lfs.url http://mynexus.xxxx.com/repositpory/testlfs/
git lfs track ‘*.jpg’
git add .
git commit -m “testlfs”
git push origin master
‘’’
It reuturn error like this
‘’’
batch response: Repository or object not found: http://mynexus.xxxx.com/repository/testlfs/objects/batch
Check that it exists and that you have proper access to it
‘’’
I check gitlab have support lfs.
I missing some important steps?
Thanks a lot!

You need to add “/info/lfs” onto the end of the repository URL you pass into “git config”, as per the documentation:

https://help.sonatype.com/repomanager3/git-lfs-repositories#GitLFSRepositories-ConfiguringGitLFSLocally

2 Likes

That’s OK, thanks a lot!!!