Nexus as gitlfs store

help

#1

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!


#2

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


#3

That’s OK, thanks a lot!!!