Git · Middle · Question 46 of 75
Why might renaming File.js to file.js cause trouble on macOS or Windows?
- ✓Correct answer: Their default filesystems are case-insensitive
- 2The rename breaks the repository's index format
- 3Git forbids lowercase names on those systems
Explanation
The OS treats both names as one file, so Git may not notice the change, while Linux CI sees two different paths. Use git mv File.js file.js.