2019忽略烦人的UserInterfaceState.xcus

2019-07-16  本文已影响0人  小y想吃糖

打开终端,cd 到工程主目录,执行以下命令

1、git rm --cache */UserInterfaceState.xcuserstate

2、git commit -m "Never see you again, UserInterfaceState" 

3、打开git hub,Ignore所有untrack文件,再点击push。【是ignore不是discard。】

4、ignore之后就会发现刚刚github上的UserInterfaceState.xcuserstate变成一个+ file,commit 然后 push。

注:

这个UserInterfaceState.xcuserstate文件标记的是Xcode操作过程中GUI的改动,不需要git。

上一篇 下一篇

猜你喜欢

热点阅读