Reputation: 15110
I'm trying to use git-lfs with a Visual Studio Online Git repository to store code alongside some large CSV data files.
I downloaded the git-lfs installer, restarted git-bash, ran git lfs install
, cloned an empty repo, and ran git lfs track "*.csv"
. Then I committed code and CSV files, and ran git push origin master
. I got this warning:
Remote "origin" does not support the LFS locking API. Consider disabling it with:
$ git config 'lfs.https://company.visualstudio.com/DefaultCollection/ProjectName/_git/reponame.git/info/lfs.locksverify' false
Git LFS: (0 of 0 files, 135 skipped) 0 B / 0 B, 3.75 GB skipped
Counting objects: 261, done.
Then I tried to clone the repo to a fresh directory, to see if it's working. I get these errors:
Downloading data/data.csv (738.83 MB)
Error downloading object: data/data.csv(**********************************************47505bb25a3e2a552e)
error: external filter git-lfs smudge -- %f failed 2
error: external filter git-lfs smudge -- %f failed
fatal: data/data.csv: smudge filter lfs failed
warning: Clone succeeded, but checkout failed.
What am I doing wrong? How do I get git-lfs to work with a VSO Git repository?
Upvotes: 0
Views: 4246
Reputation: 38116
Please check with below steps:
1.Check if .gitattributes
are also version controlled by git. And if it has the content:
*.csv filter=lfs diff=lfs merge=lfs –text
2.Use the command
git config 'lfs.https://company.visualstudio.com/DefaultCollection/ProjectName/_git/reponame.git/info/lfs.locksverify' false
and double check by git config-l
, and also check if git config contains:
filter.lfs.clean=git-lfs clean -- %f
filter.lfs.smudge=git-lfs smudge -- %f
filter.lfs.required=true
filter.lfs.process=git-lfs filter-process
Upvotes: 1