.gitignore 和 Android Studio 中 Configure Ignored Files 的对话框有什么关系?

What's the relationship between .gitignore and Dialog of Configure Ignored Files in Android Studio?

我通常在.gitignore.But中添加规则,今天我发现有一个对话框可以忽略文件。

如果我将所有规则都放在.gitignore 中,是否需要使用Configure Ignored Files 对话框?还是使用该对话框更好。

最好用.gitignore。配置忽略文件的对话框特定于 IntelliJ IDEA/Android Studio,而 .gitignore 也将被 Git 命令行客户端和其他与 Git 一起使用的工具理解。

无需在 Android Studio 对话框中复制 .gitignore 规则。