Git LFS 跳过的文件
Git LFS skipped files
我实际上正在努力将我的大型文件移动到 Git LFS。我已成功推送一组文件。
在之前的提交中,但我创建了一个只有一个文件的新提交,当我使用 git lfs push
命令时,我得到了这个输出:
Git LFS: (0 of 0 files, 1 skipped) 0 B / 6.53 KB
因此,我的文件被跳过了。为什么?
我已经 back-and-forth 获得了 JFrog 的支持,并且已经提供了有关该问题的一些关键信息:
...it looks like you may have Anonymous Access enabled. If this is the case, then you are indeed running into this bug which is scheduled to be released by Q1 of this year in Artifactory 5.0.So far, the only workarounds from Artifactory’s end are to disable anonymous access completely or to have the git credentials stored in your git config file. For the latter solution, this will need to be done per user and repository, which may not be ideal depending on the amount of users and repos that use GitLFS. You can write to the config manually or temporarily disable anonymous access so that when a 401 is returned, LFS automatically writes to the config file.
如果这需要更多说明,请告诉我,我可以添加一些更详细的步骤来调试和解决问题。
事实上这是@Tzrlk 描述的错误
但这为最终用户提供了更多诊断信息。
trace git-lfs: HTTP: {
"objects" : [ {
"oid" : "d3e64a74919373d6d4d1d36bd717206584cb64cbb0532dfce3bc2081cba6817b",
"size" : -1
} ]
}
当 运行
GIT_TRACE=1 git push
这是服务器的响应。
这在诸如
https://github.com/git-lfs/git-lfs/issues/1364
好像提示回复无效
这是@Tzrlk 在他的回答中描述的错误。
我实际上正在努力将我的大型文件移动到 Git LFS。我已成功推送一组文件。
在之前的提交中,但我创建了一个只有一个文件的新提交,当我使用 git lfs push
命令时,我得到了这个输出:
Git LFS: (0 of 0 files, 1 skipped) 0 B / 6.53 KB
因此,我的文件被跳过了。为什么?
我已经 back-and-forth 获得了 JFrog 的支持,并且已经提供了有关该问题的一些关键信息:
...it looks like you may have Anonymous Access enabled. If this is the case, then you are indeed running into this bug which is scheduled to be released by Q1 of this year in Artifactory 5.0.So far, the only workarounds from Artifactory’s end are to disable anonymous access completely or to have the git credentials stored in your git config file. For the latter solution, this will need to be done per user and repository, which may not be ideal depending on the amount of users and repos that use GitLFS. You can write to the config manually or temporarily disable anonymous access so that when a 401 is returned, LFS automatically writes to the config file.
如果这需要更多说明,请告诉我,我可以添加一些更详细的步骤来调试和解决问题。
事实上这是@Tzrlk 描述的错误 但这为最终用户提供了更多诊断信息。
trace git-lfs: HTTP: {
"objects" : [ {
"oid" : "d3e64a74919373d6d4d1d36bd717206584cb64cbb0532dfce3bc2081cba6817b",
"size" : -1
} ]
}
当 运行
GIT_TRACE=1 git push
这是服务器的响应。
这在诸如 https://github.com/git-lfs/git-lfs/issues/1364
好像提示回复无效
这是@Tzrlk 在他的回答中描述的错误。