Answer the question
In order to leave comments, you need to log in
Fork on Github and case on Windows
Good evening!
Please tell me about working with Github. I forked one project and in this fork I needed to rename some directories and files with a capital letter. After that, I synchronized with the github, but the files with names in lower case got into the repository. How do I make the native Github client case-sensitive on Windows?
Thank you.
Answer the question
In order to leave comments, you need to log in
Stop, don't do the top... Try this...
git mv file file1
git mv file1 File
(commit)
Maybe that's enough.
In Windows, file names are case-insensitive (you cannot create a folder or file with the same name but in different case).
Try this:
1. Rename by adding "_" (any character) at the beginning. Commit
2. Rename back in the correct case. Commit
3. Use git rebase -i HEAD~2 to merge both commits into one (in the second one, change pick to squash)
4. Specify a commit message in the window that appears.
As a result, you get the commit you need.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question