4 ms·
A few times I have checked out a git repo on my Mac that had two identically named files, only differing by case. Talk about a confusing experience. As soon as
by cortesoft 6y ago
A few times I have checked out a git repo on my Mac that had two identically named files, only differing by case.
Talk about a confusing experience. As soon as you checkout the file, it tells you that a file has been deleted. All normal git ways of fixing the issue don't work, because it comes down to the git repo thinking there are two files but the file system not letting that happen.
- lioeters 6y agoI had a couple confusing situations happen in a Git repo, where a capitalized file name was changed to lowercase, or vice versa. It caused an issue that only one of us in the team experienced, since they had a case-insensitive file system, I think Windows. The reverse also happened, where everyone but that person saw an issue, due to their case-sensitive file system. In the end, "git mv" solved those cases, but I never fully understood how to avoid them occurring in the first place. I think we all just agreed on a convention of all lowercase folder/file names.