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

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

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 -->

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:

确定