忽略UserInterfaceState.xcuserstate

GIT忽略iOS项目UserInterfaceState.xcuserstate

 

1.删除仓库中跟踪的UserInterfaceState.xcuserstategit

    git rm --cached iamhere/IAmHere.xcodeproj/project.xcworkspace/xcuserdata/hayden.xcuserdatad/UserInterfaceState.xcuserstatevim

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

    git pushspa

 

2.忽略UserInterfaceState.xcuserstate,在仓库根目录下:code

    vim ./.git/info/excludeit

    而后按“i”进入编辑模式,将UserInterfaceState.xcuserstate追加到文件末尾,注意要填写项目相对路径class

相关文章
相关标签/搜索