当前位置 博文首页 > xixi:iOS git ,sourceTree 忽略 cocoapods 文件

    xixi:iOS git ,sourceTree 忽略 cocoapods 文件

    作者:[db:作者] 时间:2021-07-29 15:45

    iOS git ,sourceTree 忽略 cocoapods 文件

    先copy 代码, 跟着下面的步骤

    # Xcode
    .DS_Store
    */build/*
    xcuserdata
    profile
    DerivedData
    .idea/
    *.hmap
    *.xccheckout
    *.xcworkspace
    !default.xcworkspace
    
    #CocoaPods
    Pods
    !Podfile
    !Podfile.lock
    
    1. 打开terminal (终端)
    2. 输入指令: cd ‘项目目录’
    3. 输入指令: vim .gitignore
    4. 把 开头的代码粘贴(command+v)
    5. 按 esc 键 ,输入指令 :wq (指令意思:保存并返回上一层)
    6. 此时,可以输入指令 sudo ls 查看目录下是否存在gitignore,有则表示成功
    7. 如果之前没有提交过第三方到远端,则按照正常情况,commit一下再push到远端就完成了
    8. 如果之前提交过得话,则输入指令 git rm -r Pods,然后再commit,再push
    cs
    下一篇:没有了