充满垃圾文件的 VS 代码源代码管理

VS code source control filled with junk files

标题。我正在开发一个 flutter 项目,每次修改单个文件时,我的源代码管理中都会充满数百个随机 android/ios/build 文件。我该如何摆脱这个?我有一个 github 存储库,我克隆了它,这开始发生了。我只希望我直接修改的文件显示在源代码管理中。

(注意 .gitignore 是我试图解决的问题,我已经清除了那个文件)

让我们尝试使用 flutter 项目的默认 .gitignore 文件

# Miscellaneous
*.class
*.log
*.pyc
*.swp
.DS_Store
.atom/
.buildlog/
.history
.svn/

# IntelliJ related
*.iml
*.ipr
*.iws
.idea/

# The .vscode folder contains launch configuration and tasks you configure in
# VS Code which you may wish to be included in version control, so this line
# is commented out by default.
#.vscode/

# Flutter/Dart/Pub related
**/doc/api/
**/ios/Flutter/.last_build_id
.dart_tool/
.flutter-plugins
.flutter-plugins-dependencies
.packages
.pub-cache/
.pub/
/build/

# Web related
lib/generated_plugin_registrant.dart

# Symbolication related
app.*.symbols

# Obfuscation related
app.*.map.json
    enter code here