英文:
What are the files which are not safe to push to GitHub as Public Repository
问题
我计划将我的应用推送到GitHub作为一个公共存储库,但我想知道是否安全将Android/iOS/Linux/Windows/Linux文件夹推送。
我曾看到一些存储库中推送了这些文件,但我仍然不确定是否要将其设为公共。
英文:
I was planning to push my app to git hub as a public repository but i wanted to know weather android/ ios/ linux/ windows/ linux/ folders are safe to push
I had seen repositories which had those files pushed but I'm still not sure weather to make it public or no
答案1
得分: 2
以下是您要翻译的内容:
你不需要隐藏整个文件夹。你可以将以下内容添加到你的git ignore文件中,以隐藏所有必要的文件。
# Flutter/Dart/Pub相关
**/doc/api/
**/ios/Flutter/.last_build_id
.dart_tool/
.flutter-plugins
.flutter-plugins-dependencies
.packages
.pub-cache/
.pub/
/build/
# Web相关
# 符号化相关
app.*.symbols
# 混淆相关
app.*.map.json
# Android Studio会将构建产物放在这里
/android/app/debug
/android/app/profile
/android/app/release
# fvm
.fvm/flutter_sdk
希望这有帮助!
英文:
You don't need to hide the whole folder. you can add the following to your git ignore to hide all the necessary files
<!-- begin snippet: js hide: false console: true babel: false -->
<!-- language: lang-html -->
# 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
# Symbolication related
app.*.symbols
# Obfuscation related
app.*.map.json
# Android Studio will place build artifacts here
/android/app/debug
/android/app/profile
/android/app/release
# fvm
.fvm/flutter_sdk
<!-- end snippet -->
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论