美文网首页
Sourcetree中 git 忽略文件

Sourcetree中 git 忽略文件

作者: NanNan | 来源:发表于2019-08-19 09:37 被阅读0次
    • 1、开启终端,CD进入到工程目录下,使用 touch .gitignore
    • 2、新建.gitignore文件,然后使用 open .gitignore 打开.gitignore文件
    • 3、把下面的代码粘贴到.gitignore文件中,保存就可以了。
    # 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/
    

    相关文章

      网友评论

          本文标题:Sourcetree中 git 忽略文件

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