zoukankan      html  css  js  c++  java
  • Git关于忽略Xcode工程中UserInterfaceState.xcuserstate文件的问题

    1.打开终端(Terminal),进入项目目录下

    Last login: Sun Aug 13 13:38:10 on ttys001

    xilanglangdeMacBook-Pro:~ xinshaofeng$ cd /Users/xinshaofeng/Work/Found 

    xilanglangdeMacBook-Pro:Found xinshaofeng$ ls

    Found Podfile README.md

    Found.xcodeproj Podfile.lock

    Found.xcworkspace Pods

    2.在终端输入:

    git rm --cached [YourProjectName].xcodeproj/project.xcworkspace/xcuserdata/[ YourUsername].xcuserdatad/UserInterfaceState.xcuserstate

    xilanglangdeMacBook-Pro:Found xinshaofeng$ git rm --cached Found.xcodeproj/project.xcworkspace/xcuserdata/xinshaofeng.xcuserdatad/UserInterfaceState.xcuserstate

    rm 'Found.xcodeproj/project.xcworkspace/xcuserdata/xinshaofeng.xcuserdatad/UserInterfaceState.xcuserstate'

    3.在终端键入  git commit -m "Removed file that shouldn't be tracked"

    xilanglangdeMacBook-Pro:Found xinshaofeng$ git commit -m "Removed file that shouldn't be tracked"

    [master fc0601e] Removed file that shouldn't be tracked

     2 files changed, 4 insertions(+)

     delete mode 100644 Found.xcodeproj/project.xcworkspace/xcuserdata/xinshaofeng.xcuserdatad/UserInterfaceState.xcuserstate

    xilanglangdeMacBook-Pro:Found xinshaofeng$ 

    4.重新打开Xcode commit, push

  • 相关阅读:
    python时间类型相关
    python调用函数
    LightGBM
    保存训练好的模型并调用
    Bootstrap Table
    Jquery 获取元素上绑定的事件
    C# DLL 反编译改代码
    FastReport C# 导出
    Log4Net
    BootStrap Table
  • 原文地址:https://www.cnblogs.com/xilanglang/p/7353306.html
Copyright © 2011-2022 走看看