关于Xcode的.gitignore文件
2015-07-30 18:52
555 查看
因为之前电脑之间拷贝工程体积笔记大,删除了.git目录,现在使用git init命令新建git支持,通过git add .命令会把所有文件都添加进git备份里,包括了临时文件中间文件,会影响后续的commit和pull,最后看了《Pro Git》发现可以写.gitignore文件来排除多余文件,stackoverflow上有一个回答,记录在下:
1)
The easiest answer is that mine looks like this:
which I believe is the same .gitignore that GitHub sets up with all their repositories by default.
2)
Another answer is that there's a website called "gitignore.io" , which generates the files based on the .gitignore
templates from https://github.com/github/gitignore.
原文链接:http://stackoverflow.com/questions/18939421/what-should-xcode-6-gitignore-file-include
我使用的.gitignore文件
相比较只是增加了.DS_Store,这个是Mac文件夹自己生成的
1)
The easiest answer is that mine looks like this:
# Xcode .DS_Store build/ *.pbxuser !default.pbxuser *.mode1v3 !default.mode1v3 *.mode2v3 !default.mode2v3 *.perspectivev3 !default.perspectivev3 *.xcworkspace !default.xcworkspace xcuserdata profile *.moved-aside DerivedData .idea/ # Pods - for those of you who use CocoaPods Pods
which I believe is the same .gitignore that GitHub sets up with all their repositories by default.
2)
Another answer is that there's a website called "gitignore.io" , which generates the files based on the .gitignore
templates from https://github.com/github/gitignore.
原文链接:http://stackoverflow.com/questions/18939421/what-should-xcode-6-gitignore-file-include
我使用的.gitignore文件
# Created by https://www.gitignore.io ### Xcode ### .DS_Store build/ *.pbxuser !default.pbxuser *.mode1v3 !default.mode1v3 *.mode2v3 !default.mode2v3 *.perspectivev3 !default.perspectivev3 xcuserdata *.xccheckout *.moved-aside DerivedData *.xcuserstate
相比较只是增加了.DS_Store,这个是Mac文件夹自己生成的
相关文章推荐
- js 弹出alert框
- Codeforces Round #313 (Div. 2) Problem D - Equivalent Strings
- .net利用ajax返回后台数据时xmlHttp.status=500
- android ViewDragHelper完全解析 自定义ViewGroup神器
- json字符串转换为多级Map -list-map的形式
- ant报错: 解决com.sun.tools.javac.Main is not on the classpath的问题
- Leetcode #74 Search a 2D Matrix
- KindEditor保留htmltag,以及关闭html过滤
- Codeforces Round #313 (Div. 2) Problem B. Gerald is into Art
- 分享下我的博客园CSS
- Visual Studio Online 删除项目
- 羽佳api接口程序源码下载
- HDOJ Just Random 4790【2013成都区域赛J题+等差数列优化】
- VC6.0编写IE可运行的ActiveX,增加安全检测项,不支持64位浏览器
- iOS 修改状态栏字体的颜色
- hdu 5317 多校第三场
- 整合:求最短路算法 floyd prim dijkstra Kruskal spfa算法简析
- 权利指数(hdu 1557)
- hdoj 2032 杨辉三角
- SQL Server 2008 Windows身份验证改为混合模式身份验证