git - 如何在 Refactor > Rename 上避免 PhpStorm 暂存文件

标签 git file phpstorm rename

在 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/

相关文章:

java - java程序中的文件描述符泄漏: too many open files

Java webapp - 在哪里放置应用程序生成的文件?

php - 如何在 php 中键入提示生成器?

git - 你如何保持 git 下游的 Perforce repo 更新?

java - android:内部文件读取

javascript - PhpStorm 中 JS Cookie 的代码补全

ide - 如何让 PHPStorm 像定义的那样处理一个函数?

Git 未跟踪文件列表错误

git - 在不更改本地存储库的情况下撤消远程分支上的 git push?

node.js - 关于管理 React node_modules 的建议