Remember: GNU/Linux and other UNIX systems can make files that are case-sensitive, Windows can't make files that are case-sensitive
Remember: GNU/Linux and other UNIX systems can make files that are case-sensitive, Windows can't make files that are case-sensitive
You're viewing a single thread.
39 1 Replysurely Git warns about stuff like this when you clone it, right ?
3 0 ReplyIt tells you there's a name clash, and then it clones it anyway and you end up with the contents of
README.MD
inREADME.md
as an unstaged change.4 1 Replysounds like actually a good solution ... tho doesnt sound like it would work for more than 2 similarly-named files
2 0 ReplyI don't think it's intended as a "solution", it just lets the clobbering that is caused by the case insensitiveness happen.
So git just goes:
- checkout content of README.md to README.md (OS creates README.md)
- checkout content of README.MD to README.MD (OS overwrites README.md)
If you add a third or fourth file ... it would just continue, and file gets checked out first gets the filename and whichever file gets checked out last, gets the content.
3 1 Replythats better than Git just choosing a file to keep.
1 0 Reply