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

  • 相关阅读:
    Mysql String Functions
    Array JSON
    $(document).ready vs $(window).load vs window.onload
    jquery,返回到顶部按钮
    html5 教程网站
    js,replace() 和 正则表达式(regular expression)
    设置 textarea 默认滑动到底部
    工作常用英语单词整理2
    工作常用英语单词整理1
    javascript,jquery代码规范
  • 原文地址:https://www.cnblogs.com/xilanglang/p/7353306.html
Copyright © 2011-2022 走看看