LFS上传失败

时间:2019-05-30 15:28:42

标签: git git-lfs

我尝试将本地文件推送到我的git repo。但是lfs上传文件。 它告诉我该文件丢失。但是文件在那里,我可以在计算机上看到它

那是仓库:https://github.com/gwillig/uk_accident_analysis

1)尝试:
 git init
git remote add origin https://github.com/gwillig/UK-traffic-accidents.git
git lfs install
git track“ * .csv”
git commit -m“第一次提交”
git push origin master

=>结果:与屏幕截图相同的错误消息

2)尝试:
 git config -f .lfsconfig lfs.url https://github.com/gwillig/UK-traffic-accidents.git

错误消息 enter image description here

文件夹:

enter image description here

解决方案

我在bk2204的帮助下发现了错误(请参见https://github.com/git-lfs/git-lfs/issues/3674)。那里有两个错误。 1.)我的用户名带有空格

2。)端点的配置错误: 它是 git lfs env我发现端点的配置错误。 是https://github.com/gwillig/uk_accident_analysis.git。正确的端点是git config lfs.url“ https://github.com/gwillig/uk_accident_analysis.git/info/lfs

0 个答案:

没有答案