xcode git 忽略user interface state文件

来源:互联网 发布:网络使用情况调查报告 编辑:程序博客网 时间:2024/04/29 21:17

1. 退出xcdoe, 打开终端(Terminal),进入到你的项目目录下

2. 在终端键入  git rm --cached [YourProjectName].xcodeproj/project.xcworkspace/xcuserdata/[YourUsername].xcuserdatad/UserInterfaceState.xcuserstate
3. 在终端键入  git commit -m "Removed file that shouldn't be tracked"

4. 在.gitignore文件中加入如下几行

*.xcuserstateproject.xcworkspacexcuserdataUserInterfaceState.xcuserstateproject.xcworkspace/xcuserdata/UserInterface.xcuserstate 

5. 重新打开Xcode commit, push。

0 0
原创粉丝点击