美文网首页
Git提交中忽略UserInterfaceState.xcuse

Git提交中忽略UserInterfaceState.xcuse

作者: 里克尔梅西 | 来源:发表于2020-09-17 09:55 被阅读0次

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.xcuse

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