removing broken names in Git (dropbox conflicted copy)
I got this warning possibly after updating my git version (ubuntu 15.04 to 15.10) and needed only to remove directories in .git/refs/remotes for old dangling remotes I no longer actually had configured.
when dropbox finds conflicting files, it renames those to filename (conflicted copy)
(as you might know). So you just have to rename again those files:
This might be a rather delicate exercise since you will be messing inside your git directory; better take a copy of your whole repository first. Now go into this directory
cd <repo>/.git/refs/heads
where you will find those badly renamed files. You'll have to check which one to keep (the normal or then conflicting copy), and remove the unwanted, renaming the conflicting copies as necessary. You'll have to do the same in the other directory:
<repo>/.git/refs/remotes
EDIT: each of the files you'll find just contains the hash of the commit they are pointing at. So if you want to check which one to keep; check which of the commits really exists, and where you want those references to point to.