40

git flow - git push to remote error: remote: warning: inexact rename detection w...

 5 years ago
source link: https://stackoverflow.com/questions/56874824/git-push-to-remote-error-remote-warning-inexact-rename-detection-was-skipped
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

git push to remote error: remote: warning: inexact rename detection was skipped due to too many files

After I finish release on my machine... git flow release finish 'X.X.XXX.X' I then have to push the new release to origin. So I run these commands...

$ git push origin --tags (this works, results omitted)
$ git checkout develop (this works, results omitted)
$ git push (this works, results omitted)
$ git checkout master (this works, results omitted)
$ git push (this is what fails)
Total 0 (delta 0), reused 0 (delta 0)
remote: warning: inexact rename detection was skipped due to too many files.
remote: warning: you may want to set your diff.renameLimit variable to at least 1804 and retry the command.

So, I have read a number of SO posts and the git-config documentation. Based on what I read I set these values in my config...

$ git config merge.renameLimit 999999
$ git config diff.renameLimit 999999
$ git config diff.renames copies

Which results in this in the config file...

[merge]
    renameLimit = 999999
[diff]
    renameLimit = 999999
    renames = copies

But the same error happens. I'm not sure what else to try. Is 999999 too high of a value? Is there a limit you can't exceed for it to work? For diff.renames should it be copies or "copies" with double quotes? I'll try all those options it just takes a long time to re-setup a test scenario. The documentation says diff.renames defaults to true but when I looked in my config it wasn't present that's why I added copies.

Here is my full config file in case it helps...

[core]
    repositoryformatversion = 0
    filemode = false
    bare = false
    logallrefupdates = true
    symlinks = false
    ignorecase = true
[remote "origin"]
    url = https://github.xxxxxx.com/gfrobenius/xxxxxx.git
    fetch = +refs/heads/*:refs/remotes/origin/*
[branch "develop"]
    remote = origin
    merge = refs/heads/develop
[branch "master"]
    remote = origin
    merge = refs/heads/master
[gitflow "branch"]
    master = master
    develop = develop
[gitflow "prefix"]
    feature = feature/
    bugfix = bugfix/
    release = release/
    hotfix = hotfix/
    support = support/
    versiontag = 
[gitflow "path"]
    hooks = C:/Users/gfrobenius/Sites/gfrobenius/xxxxxx/.git/hooks
[merge]
    renameLimit = 999999
[diff]
    renameLimit = 999999
    renames = copies

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK