flutter gitignore
时间: 2023-12-17 15:28:53 浏览: 227
.gitignore
以下是Flutter项目的.gitignore文件的示例:
```gitignore
# Miscellaneous
*.class
*.log
*.pyc
*.swp
.DS_Store
.idea/
.vscode/
.pub-cache/
/build/
.packages
.pub/
.flutter-plugins
.flutter-plugins-dependencies
.gcloud/
*.iml
.gradle/
/local.properties
/.idea/workspace.xml
/.idea/libraries
/.idea/modules.xml
/.android/
/.ios/
/ios/Flutter/.last_build_id
/ios/Flutter/Generated.xcconfig
/ios/Flutter/AppFrameworkInfo.plist
/ios/Flutter/Flutter.framework/
/ios/Flutter/Flutter.podspec
/ios/Flutter/GeneratedPluginRegistrant.*
/ios/Flutter/flutter_assets/
/ios/Flutter/flutter_export_environment.sh
/android/.gradle
/android/captures/
/android/gradlew
/android/gradlew.bat
/android/local.properties
/android/gradle/
/android/app/build/
/android/build/
/android/gradle.properties
/android/gradle.yaml
/android/gradle.lockfile
```
这个文件列出了在Flutter项目中应该被忽略的文件和文件夹,以便在使用Git进行版本控制时不会将这些文件提交到代码库中。这个文件可以直接从Flutter项目的GitHub仓库中获取,也可以根据自己的需要进行修改和定制。
阅读全文