Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I do commit a renamed file with case-sensitive using TortoiseGit?

I am trying a sample project to rename a file using Eclipse. First, I did a commit and pushed to GitHub. The file was Samplemain.java. If I rename that file to SampleMain.java and if I try to commit the renamed file using TortoiseGit, I'm unable to commit. Instead, it's showing an error with a small dialog.

Please let me know the solutions for renaming files with case-sensitive in Git. I am using Windows, the error dialog is shown below. enter image description here

like image 235
Satyarao.K Avatar asked Jul 19 '26 07:07

Satyarao.K


1 Answers

Run following command in Windows command line (MINGW console). It should fix the case detection problem.

git config core.ignorecase false
like image 73
petrnohejl Avatar answered Jul 20 '26 21:07

petrnohejl



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!