首页 > 其他 > 详细

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

时间:2017-08-13 14:44:37      阅读:622      评论:0      收藏:0      [点我收藏+]

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文件的问题

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!