When I try to merge any branch in git into master I get error: addinfo_cache failed for path 'file'.
What I do:
>git checkout master
>git merge other-branch
Git gives me:
error: addinfo_cache failed for path 'file'
file: unmerged (581c47f7d0e1a0bc825d528d9783ac18ee0cce27)
file: unmerged (26a0c24dccd2bc2f74e20488ca01bba2fcd9cf56)
file: unmerged (3be471ca5c689693339827a455f187814677642f)
fatal: git write-tree failed to write a tree
>git status yields:
On branch master
Your branch is up-to-date with 'origin/master'.
Unmerged paths:
(use "git reset HEAD <file>..." to unstage)
(use "git add <file>..." to mark resolution)
both modified: file
no changes added to commit (use "git add" and/or "git commit -a")
I have no idea what to do and can't find anython on the problem.
add_cacheinfo failed for path ...is an internal error and should not occur. Either something inside Git is broken, or something inside your computer itself is broken / failing. If the problem persists on a different computer, that would suggest it's a bug in whatever version of Git you're using; you could try using a different version of Git..gitfolder at work. Hopefully that fixes it..gitand cloning it new solved the problem. Thanks. Do you want to write your comment as an answer, then I will accept it.