• Git提交代码.gitignore的模版


    适用于大部分前端项目

    # 忽略以下文件和目录
    node_modules/    # 忽略Node.js依赖模块目录
    dist/            # 忽略打包输出目录,通常是打包后的生产文件
    .cache/          # 忽略开发工具生成的缓存文件目录
    .env             # 忽略环境变量文件
    *.log            # 忽略日志文件
    .DS_Store        # 忽略macOS系统生成的隐藏文件
    
    # 编辑器/IDE特定的文件和目录
    .vscode/         # 忽略Visual Studio Code配置
    .idea/           # 忽略IntelliJ IDEA配置
    *.sublime-project  # 忽略Sublime Text项目文件
    
    # 依赖管理文件
    yarn.lock        # 忽略Yarn依赖版本锁定文件
    package-lock.json # 忽略npm依赖版本锁定文件
    
    # 临时文件
    *.swp            # 忽略Vim的交换文件
    *.swo            # 忽略Vim的备份文件
    
    # 前端开发特定的规则
    bower_components/  # 忽略Bower依赖目录
    .eslintcache/      # 忽略ESLint缓存文件目录
    .gitignore         # 忽略.gitignore文件(针对多个开发者的协作)
    build/             # 忽略构建输出目录
    log/               # 忽略日志文件目录
    tmp/               # 忽略临时文件目录
    tests/             # 忽略测试文件目录
    node_modules/      # 忽略Node.js依赖模块目录(如果使用Yarn,可忽略)
    /coverage/         # 忽略代码覆盖率报告
    
    # 其他可能需要忽略的文件或目录
    .editorconfig      # 忽略.editorconfig文件
    .env.local         # 忽略本地开发环境配置文件
    # 自动生成的文件
    #.vscode-server/   # 忽略VS Code服务器的临时目录(如果适用)
    #.history/         # 忽略历史记录文件目录
    # 构建工具生成的文件
    # 本地数据库文件
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13
    • 14
    • 15
    • 16
    • 17
    • 18
    • 19
    • 20
    • 21
    • 22
    • 23
    • 24
    • 25
    • 26
    • 27
    • 28
    • 29
    • 30
    • 31
    • 32
    • 33
    • 34
    • 35
    • 36
    • 37
    • 38
    • 39
    • 40

    适用于Andriods的React-Native项目

    # OSX
    #
    .DS_Store
    
    # Xcode
    #
    build/
    *.pbxuser
    !default.pbxuser
    *.mode1v3
    !default.mode1v3
    *.mode2v3
    !default.mode2v3
    *.perspectivev3
    !default.perspectivev3
    xcuserdata
    *.xccheckout
    *.moved-aside
    DerivedData
    *.hmap
    *.ipa
    *.xcuserstate
    ios/.xcode.env.local
    
    # Android/IntelliJ
    #
    build/
    .idea
    .gradle
    local.properties
    *.iml
    *.hprof
    .cxx/
    
    # node.js
    #
    node_modules/
    npm-debug.log
    yarn-error.log
    
    # BUCK
    buck-out/
    \.buckd/
    *.keystore
    !debug.keystore
    
    # fastlane
    #
    # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
    # screenshots whenever they are needed.
    # For more information about the recommended setup visit:
    # https://docs.fastlane.tools/best-practices/source-control/
    
    **/fastlane/report.xml
    **/fastlane/Preview.html
    **/fastlane/screenshots
    **/fastlane/test_output
    
    # Bundle artifact
    *.jsbundle
    
    # Ruby / CocoaPods
    /ios/Pods/
    /vendor/bundle/
    
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13
    • 14
    • 15
    • 16
    • 17
    • 18
    • 19
    • 20
    • 21
    • 22
    • 23
    • 24
    • 25
    • 26
    • 27
    • 28
    • 29
    • 30
    • 31
    • 32
    • 33
    • 34
    • 35
    • 36
    • 37
    • 38
    • 39
    • 40
    • 41
    • 42
    • 43
    • 44
    • 45
    • 46
    • 47
    • 48
    • 49
    • 50
    • 51
    • 52
    • 53
    • 54
    • 55
    • 56
    • 57
    • 58
    • 59
    • 60
    • 61
    • 62
    • 63
    • 64
    • 65
  • 相关阅读:
    shell的test命令和两种参数获取方式,详解getopts以及eval、exec、export、read、shift内置命令
    基于springboot和vue2外卖点餐系统的项目总结
    【数据结构】二叉树的链式结构
    Dapr在Java中的实践 之 环境准备
    LayaBox---多状态---时间轴动画
    微服务架构介绍
    如何比较分子的极性?
    ABAP BP维护客户cl_md_bp_maintain=>maintain
    png转pdf怎么转换?这些图片格式转换工具确定不来看看?
    HTML&CSS
  • 原文地址:https://blog.csdn.net/weixin_68658847/article/details/134093821