I have two branches locally, master and Berislav. The latter is currently active, and I have committed all the changes. When I try to checkout to <
Very similar to @JohnHammink answer but here goes.
Solution
In my case this was because of a file that was renamed with only a change to the case. e.g. fooViewModel to FooViewModel. Git kept thinking that the same file was actually two separate files.
I think this has something to do with Unix being case sensitive while windows not really.
Hope this helps