-
Notifications
You must be signed in to change notification settings - Fork 2.7k
File is always marked as modified in git status #1416
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I now actually think that this has nothing to do that the file is Unicode but that the mixed case is the issue. Probably the git rebase tool doesn't take into account that Windows is not case sensitive to file names. It could spot this and give me a conflict when rebasing or something. I will try to solve this issue in our main repository. The fork mentioned above will remain unchanged in case somebody will want to take a look at this. |
As you said, This fixes it (for me): |
Thanks, after executing these commands git status now shows |
The root cause of this is case-insensitive filesystems (macOS and Windows both suffer from this). Git can't really help you out - there's some additional context here and here about it... |
Did you create db5c411 on a Linux machine ? |
No, all commits were made from Windows. We only work on Windows for now. |
You got the files [Rr]eactivedrop_english.txt $ git log reactivedrop/resource/reactivedrop_english.txt
$ git log reactivedrop/resource/ReactiveDrop_english.txt
|
Above I wrote that this happened after rebase. I solved the issue by recreating a few commits and deleting one of the files. Alright, I'll close this issue. But I still think that git tools(rebase and merge) could spot this and at least warn the Windows user about what is about happen. However it's up to git developers to decide ;) |
Just a final comment: |
yes |
I am experiencing this problem on one of my repositories with the file in git gui saying:
but after a forced hard reset it does not change anything for me and still says the working tree is not clean when it should be. git version 2.19.2.windows.1 https://github.com/Elskom/Els_kom_new.git @dscho hopefully your latest release from 11 hours ago fixes the issue for me. |
Is it the same problem of case sensitivity (by Git) relative to the insensitive Windows FS? I.e. what are the true file names in the index and in the FS. |
it is labeled as "Els_kom_Core/Classes/ZlibHelper.cs" on both index and windows FS. |
What does |
I updated git to v.2.27 (Windows 10 x64). I use GUI tool "Git Extensions" to work with Git. git --version --build-options cmd.exe /c ver type "C:\Program Files\Git\etc\install-options.txt" I have the same "case-sensitive" problem. |
Uh oh!
There was an error while loading. Please reload this page.
Setup
defaults?
to the issue you're seeing?
No.
Details
Bash
Minimal, Complete, and Verifiable example
this will help us understand the issue.
Expect no modified files.
File reactivedrop/resource/ReactiveDrop_english.txt is marked as modified.
URL to that repository to help us with testing?
https://bitbucket.org/reactivedropteam/reactivedrop_public_src_modified_file_bug
weapon-gas-grenade branch was created earlier in the repository. After that we normalized line endings in the repository and pushed commits starting from d3ee316. We rebased weapon-gas-grenade onto reactivedrop_public branch(commit 17f7f12). And force pushed it.
I assume the problem is that weapon-gas-grenade adds this file ReactiveDrop_english.txt in lower case naming(reactivedrop_english.txt commit db5c411), but this file already existed in mixed case naming.
The text was updated successfully, but these errors were encountered: