美文网首页
iOS git提交时忽略频繁更新的UserInterfaceSt

iOS git提交时忽略频繁更新的UserInterfaceSt

作者: 智能老树皮 | 来源:发表于2020-07-08 11:00 被阅读0次

先在工程目录(和.git仓库同路径的目录下)配置有 .gitignore 文件;

在终端键入下面3句

git rm --cached [YourProjectName].xcworkspace/xcuserdata/[YourUsername].xcuserdatad/UserInterfaceState.xcuserstate

git commit -m "Removed file that shouldn\'t be tracked"

git push

.gitignore文件下载地址,https://github.com/github/gitignore

相关文章

网友评论

      本文标题:iOS git提交时忽略频繁更新的UserInterfaceSt

      本文链接:https://www.haomeiwen.com/subject/wivqcktx.html