在 PhpStorm 下创建文件时,它在 Git 中显示为未跟踪。 但是使用 Refactor > Rename,它将文件移动到暂存区域。
有什么方法可以禁用它吗?
最佳答案
检查这是否与 this thread 有关:
What settings are chosen in Settings | Version Control | Confirmation?
Do you have 'Add silently' and 'Remove silently' enabled?With those settings, I can prevent WebStorm from automatically staging changed, added or deleted files in git.
Moved or renamed files are still automatically staged, though.
如果还是这样,你需要投票给issue IDEA-165445 .
关于git - 如何在 Refactor > Rename 上避免 PhpStorm 暂存文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37572882/