I try to merge my git repository with a remote one and what i get is this:
Merge Result: Failed Merge of HEAD with remote-rep/master failed because of these files: /path/to/some/file.jpg
The whole folder that file is in is shown as ignored by git. I checked it in .gitignore and it is there. Those files have never been added on commit also.
git ls-files
?git ls-tree --name-only remote-rep/master
and see if/path/to/some/file.jpg
is tracked on the remote branch. If so, it makes sense that the merge fails even though you don't track it.