git - 执行 git push 时出现 "diff.renamelimit variable"警告

标签 git warnings push

我将本地提交推送到远程 git 服务器并收到以下警告消息:

remote: warning: only found copies from modified paths due to too many files.
remote: warning: you may want to set your diff.renamelimit variable to at least 19824 and retry the command.

但实际上我已经将 diff.renamelimit 设置为 0(我认为零意味着无限,对吧?)。

$ git config --list
...
diff.renamelimit=0

那么我该怎么做才能避免这个警告呢?谢谢。

最佳答案

git config merge.renameLimit 999999

merge.renameLimit 是什么意思

The number of files to consider when performing rename detection during a merge; if not specified, defaults to the value of diff.renameLimit.

来源:https://git-scm.com/docs/git-merge

关于git - 执行 git push 时出现 "diff.renamelimit variable"警告,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7830728/

相关文章:

Python如何过滤特定警告?

java - 为什么我在 Eclipse/ADT 中看到同一代码行的重复警告?

matlab - 我不断收到警告,说我使用polyfit()查找多项式时,多项式的条件不好

windows - sh 脚本不会将 ssh key 添加到 ssh-agent (windows git bash)

xcode - CocoaPod 库 + 单个工作区中的项目,单独的 GIT 存储库

git - Powershell 中的“git am < MyFix.patch”命令错误

git - 如何解决git中文件重命名文件夹的冲突?

git - 请求的URL返回错误: 403 in git repository如何解决

javascript - 如果新对象未定义则推送新对象并在可用时忽略

xcode - 捆绑标识符和推送证书... aps-环境授权错误