如何自动暂存所有 Intellij Idea 文件?

How to automatically stage all Intellj Idea files?

我不确定为什么,我可能不小心默认禁用了它,但每当我创建一个新文件时,它都会出现在 'red' 中,因为它没有在 Intellij 上暂存。如何自动暂存文件而不是进入 Bash?

在 IntelliJ 中转到位置文件 -> 设置 -> 版本控制 -> 确认 -> Select“静默添加”。如下图所示:

更多信息请参考线程Add a new file in Intellij doesn't add to subversion