码迷,mamicode.com
首页 > 其他好文 > 详细

Git关于忽略Xcode工程中UserInterfaceState.xcuserstate文件的问题

时间:2017-08-13 15:16:16      阅读:155      评论:0      收藏:0      [点我收藏+]

标签:work   macbook   文件的   project   int   终端   ack   track   ons   

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

 

Git关于忽略Xcode工程中UserInterfaceState.xcuserstate文件的问题

标签:work   macbook   文件的   project   int   终端   ack   track   ons   

原文地址:http://www.cnblogs.com/xilanglang/p/7353306.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!