Warning on "diff.renamelimit variable" when doing git push

stid.smth picture stid.smth · Oct 20, 2011 · Viewed 71.1k times · Source

I'm pushing the local commit to the remote git server and got the following warning messages:

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.

But actually I've already set the diff.renamelimit to 0 (I think zero means unlimited, right?).

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

So what shall I do to avoid this warning? Thanks.

Answer

Serge Seletskyy picture Serge Seletskyy · Jan 21, 2015
git config merge.renameLimit 999999

What does merge.renameLimit mean

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

source: https://git-scm.com/docs/git-merge