简体   繁体   中英

Can not checkout a branch with uppercased file in Intellij Idea and Webstorm (Windows)

  • Choose some file in your project and rename it to another case (app.js -> App.js)
  • Commit it
  • Try to get back to previous commit
  • You'll see a warning notification with the text "Some untracked working tree files would be overwritten by checkout. Please move or remove them before you can checkout."

When I used Ubuntu, there were no such problems. I know also that Windows' file system is case insensitive so maybe it causes the issue.

I also tried to change case sensitivity for git like this:

git config core.ignorecase false

but it didn't help

Some untracked working tree files would be overwritten by checkout. Please move or remove them before you can checkout

And what is the actual file listed as preventing checkout? App.js should not be an untracked one after the rename.

Also just tested with such a rename, and checking out pre-rename state works fine. Does it work at the command prompt for you?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM