Git提交中忽略UserInterfaceState.xcuserstate文件

1、cd worksapce 到工程根目录下
2、touch .gitignore 创建忽略文件
3、vim .gitignore vim编辑文件
4、复制https://github.com/github/gitignore/blob/master/Objective-C.gitignore中的内容到编辑文件中
5、shift + :输入 wq!保存并退出
6、

添加到缓存区,git add .gitignore
提交git commit -m "添加了.gitignore文件"
推送git push

7、

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

参考文档:https://www.jianshu.com/p/6f464f555f2d
https://www.jianshu.com/p/841fa133417f

你可能感兴趣的:(Git提交中忽略UserInterfaceState.xcuserstate文件)