Git LFS 跳过文件

标签 git git-lfs

我实际上正在努力将我的大型文件移动到 Git LFS。我已经成功推送了一组文件。

在之前的提交中,我创建了一个只有一个文件的新提交,当我使用 git lfs push 命令时,我得到了这个输出:

Git LFS: (0 of 0 files, 1 skipped) 0 B / 6.53 KB

因此,我的文件被跳过了。为什么?

最佳答案

我一直与 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.

如果这需要更多说明,请告诉我,我可以添加一些更详细的步骤来调试和解决问题。

关于Git LFS 跳过文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39118458/

相关文章:

git - 来自 Bitbucket 的“Go Get”私有(private) repo

git - Git 中的非快进更新

git - 显示有关 git commit 'without diff' 但 'with' 文件的信息

linux - 创建本地 git 存储库失败

git - 无法推送到 GitHub 上的远程存储库

git - 将文件移至 LFS 后如何从 git 数据库中删除该文件?

Git 和 Visual Studio 项目引用

git - 如何使用 git lfs 进行 rebase ?

git - Bitbucket git LFS 给出奇怪的错误信息

git - 如何缩小 git LFS 存储库