What are the files which are not safe to push to GitHub as Public Repository

huangapple go评论114阅读模式
英文:

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文件中,以隐藏所有必要的文件。

  1. # Flutter/Dart/Pub相关
  2. **/doc/api/
  3. **/ios/Flutter/.last_build_id
  4. .dart_tool/
  5. .flutter-plugins
  6. .flutter-plugins-dependencies
  7. .packages
  8. .pub-cache/
  9. .pub/
  10. /build/
  11. # Web相关
  12. # 符号化相关
  13. app.*.symbols
  14. # 混淆相关
  15. app.*.map.json
  16. # Android Studio会将构建产物放在这里
  17. /android/app/debug
  18. /android/app/profile
  19. /android/app/release
  20. # fvm
  21. .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 -->

  1. # Flutter/Dart/Pub related
  2. **/doc/api/
  3. **/ios/Flutter/.last_build_id
  4. .dart_tool/
  5. .flutter-plugins
  6. .flutter-plugins-dependencies
  7. .packages
  8. .pub-cache/
  9. .pub/
  10. /build/
  11. # Web related
  12. # Symbolication related
  13. app.*.symbols
  14. # Obfuscation related
  15. app.*.map.json
  16. # Android Studio will place build artifacts here
  17. /android/app/debug
  18. /android/app/profile
  19. /android/app/release
  20. # fvm
  21. .fvm/flutter_sdk

<!-- end snippet -->

huangapple
  • 本文由 发表于 2023年6月29日 15:40:02
  • 转载请务必保留本文链接:https://go.coder-hub.com/76578969.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定