美文网首页
git提交代码隐藏UserInterfaceState.xcus

git提交代码隐藏UserInterfaceState.xcus

作者: anny_4243 | 来源:发表于2022-11-09 10:04 被阅读0次

    使用git提交代码时,每次提交都会出现UserInterfaceState.xcuserstate这个文件,实际上提交这个文件没什么用,即使什么代码都没改也会自动出现,会很烦,所以需要想办法让这个文件不再出现。

    解决办法:
    1.打开终端
    2.cd 到项目文件夹所在目录
    3.输入命令

    git rm --cache xxx/UserInterfaceState.xcuserstate //文件所在目录
    git commit -m "xxx" //xxx为提交的备注
    

    相关文章

      网友评论

          本文标题:git提交代码隐藏UserInterfaceState.xcus

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