美文网首页iOS 进阶
iOS Git添加ignore 忽略提交pods内容

iOS Git添加ignore 忽略提交pods内容

作者: Singularity_Lee | 来源:发表于2020-08-06 11:23 被阅读0次
    • cd进项目所在文件夹,并生成.gitignore文件
    touch .gitignore
    
    • open .gitignore文件添加忽略过滤内容并保存push上传即可
    # Xcode
    #
    # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
    # Mac OS X Finder and whatnot
    .DS_Store
    ## Build generated
    build/
    DerivedData/
    ## Various settings
    *.pbxuser
    !default.pbxuser
    *.mode1v3
    !default.mode1v3
    *.mode2v3
    !default.mode2v3
    *.perspectivev3
    !default.perspectivev3
    xcuserdata/
    ## Other
    *.moved-aside
    *.xcuserstate
    *.xccheckout
    ## Obj-C/Swift specific
    *.hmap
    *.ipa
    *.dSYM.zip
    *.dSYM
    
    #CocoaPods
    Pods/
    Pods
    .DS_Store
    Podfile.lock
    /.DS_Store
    Podfile.lock
    /Podfile.lock
    

    若不需要忽略提交pods内容将最后#CocoaPods中包含项去除即可


    查询创建所有语言的ignore内容

    相关文章

      网友评论

        本文标题:iOS Git添加ignore 忽略提交pods内容

        本文链接:https://www.haomeiwen.com/subject/pedzrktx.html