1.删除仓库中跟踪的UserInterfaceState.xcuserstate
git rm --cached iamhere/IAmHere.xcodeproj/project.xcworkspace/xcuserdata/hayden.xcuserdatad/UserInterfaceState.xcuserstate
git commit -m "Removed file that shouldn't be tracked"
git push
2.忽略UserInterfaceState.xcuserstate,在仓库根目录下:
vim ./.git/info/exclude
然后按“i”进入编辑模式,将UserInterfaceState.xcuserstate追加到文件末尾,注意要填写项目相对路径
本文指导如何从Xcode项目仓库中删除并忽略UserInterfaceState文件,包括使用git命令删除缓存文件、提交更改及配置.git/info/exclude文件来忽略特定文件。

被折叠的 条评论
为什么被折叠?



