码迷,mamicode.com
首页 > 其他好文 > 详细

忽略UserInterfaceState.xcuserstate

时间:2015-04-07 19:02:06      阅读:147      评论:0      收藏:0      [点我收藏+]

标签:

GIT忽略iOS项目UserInterfaceState.xcuserstate

 

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追加到文件末尾,注意要填写项目相对路径

忽略UserInterfaceState.xcuserstate

标签:

原文地址:http://www.cnblogs.com/mohe/p/4398864.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!