Member-only story
Resolving issue with Git not able to differentiate between letter cases (uppercase & lowercase) with folder/directory
When I name my directory for files, I am used to a Pascal Case, where the first letter of each word in a compound word is capitalized, or all upper cases. However, not everyone prefers the same approach, and, as a developer, you have to be flexible to adopt the naming conventions that your developer team is comfortable with. It just happens today that I had to convert a directory name in the Pascal Case to a directory named all lower cases. Well, I discovered that is not quite easy to do if you end up using the same directory name but in different capital case variations.
Here is a scenario. I created a temporary GitHub directory just for this. From the screenshot below, you see a GitHub repo named DemoGit where it just contains a README.md file and a Folder in the Pascal Case.
The screenshot below shows the cloned directory. Inside the Folder, there is one empty dummy file named file.txt. I created the file because Git does not recognize the existence of a new directory if it is empty.