`warning: inexact rename detection was skipped due to too many files.` and `warning: you may want to set your merge.renameLimit variable to at least 5402 and retry the command.`
IntermediateTroubleshootingRepository Health, Size and Performance
Answer
Likely causes → A merge, cherry-pick or diff involves more added/deleted files than the rename-detection limit, so Git stopped looking for renames. A big directory move then shows as delete + add and produces bogus modify/delete conflicts.
Diagnose → Re-read the warning for the suggested number, and check git diff --stat -M <base> <branch> | tail -1.
Fix → Abort and retry with a higher limit:
git merge --abort
git -c merge.renameLimit=6000 merge feature
# for diffs: git -c diff.renameLimit=6000 diff -M main...feature
Prevent → Do large moves/renames in a dedicated commit with no content changes, so rename detection is exact and cheap.
More on Repository Health, Size and Performance
`git status` takes 8–15 seconds in a large monorepo.Intermediate`error: The last gc run reported the following. Please correct the root cause and remove .git/gc.log` followed by `warning: There are too many unreachable loose objects; run 'git prune' to remove them.`IntermediateEvery few commands Git prints `Auto packing the repository in background for optimum performance.` and the machine stutters.BeginnerA fresh clone downloads 4 GB, but the checked-out files are only 200 MB.Intermediate`git gc` or `git clone` dies with `fatal: Out of memory, malloc failed (tried to allocate 1073741824 bytes)` or `error: pack-objects died of signal 9`.Advanced`error: unable to create temporary file: No space left on device` followed by `fatal: failed to write object`.Beginner