git UserInterfaceState.xcuserstat

本文介绍了如何解决Xcode中SourceControl频繁提示UserInterfaceState.xcuserstate文件未提交的问题。通过使用git命令移除对该文件的跟踪并提交更改,可以避免这类警告。此方法适用于希望优化Xcode工作流程的开发者。

使用Xcode的Source Control时,老是出现UserInterfaceState.xcuserstat文件没有commit的情况.

解决方法:

可能Git已经在track该文件了:

Git的文档写到:

To stop tracking a file that is currently tracked, use git rm --cached.

git rm --cached ProjectFolder.xcodeproj/project.xcworkspace/xcuserdata/myUserName.xcuserdatad/UserInterfaceState.xcuserstate
git commit -m "Removed file that shouldn't be tracked"
原文链接:http://www.jianshu.com/p/214a51001f64

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值