ios 项目 .gitignore 文件配置
2017-09-07 16:27
393 查看
能够列入到代码版本控制的文件是有规定的,不能是编写的二进制文件、临时文件和用户特有的文件等。
本人用的xcode 是8.3.3版本
xcode4 以上版本,我认为必要的配置项为:
如果是xcode 3 和xcode 4版本
文件考虑到了X code 3和4差别,需要过滤的文件多出一些
如果考虑适用于所有的Xcode工程,则需要使用git config命令配置git,在终端中执行git config命令:
$ git config –global core.excludesfile ~/.gitignore
该命令会将配置信息写入到~/.gitconfig文件中,–global参数是配置全局信息,~/.gitignore说明文件是放置于当前用户目录下。
本人用的xcode 是8.3.3版本
xcode4 以上版本,我认为必要的配置项为:
# Xcode .DS_Store build/ xcuserdata/ xcshareddata/ .idea/
如果是xcode 3 和xcode 4版本
文件考虑到了X code 3和4差别,需要过滤的文件多出一些
# Exclude the build directory build/* # Exclude temp nibs and swap files *~.nib *.swp # Exclude OS X folder attributes .DS_Store # Exclude user-specific XCode 3 and 4 files *.mode1 *.mode1v3 *.mode2v3 *.perspective *.perspectivev3 *.pbxuser *.xcworkspace xcuserdata # Exclude the build directory build/* # Exclude temp nibs and swap files *~.nib *.swp # Exclude OS X folder attributes .DS_Store # Exclude user-specific XCode 3 and 4 files *.mode1 *.mode1v3 *.mode2v3 *.perspective *.perspectivev3 *.pbxuser *.xcworkspace xcuserdata
如果考虑适用于所有的Xcode工程,则需要使用git config命令配置git,在终端中执行git config命令:
$ git config –global core.excludesfile ~/.gitignore
该命令会将配置信息写入到~/.gitconfig文件中,–global参数是配置全局信息,~/.gitignore说明文件是放置于当前用户目录下。
相关文章推荐
- [置顶] 【iOS开发】配置忽略文件.gitignore 文件
- 【iOS开发】配置忽略文件.gitignore 文件
- iOS日常学习 - 如何配置.gitignore文件
- Android Studio SVN配置忽略文件 1.用Android Studio创建一个项目,会在根目录和Module目录下自动生成.gitignore文件,貌似是Git的配置文件,
- iOS日常学习 - 如何配置.gitignore文件
- iOS 配置.gitignore文件详细介绍
- .gitignore 配置文件
- Git忽略文件及Unity下的ignore配置
- Git中.gitignore文件的配置
- git gitignore文件配置
- 浅谈如何在Eclipse下的Android工程配置Git的.gitignore文件
- iOS中创建.gitignore文件
- git 创建 .gitignore 文件 建立项目过滤规则
- .gitignore配置详解和配置的文件时哪些文件
- ios SourceTree中添加git项目工程文件
- git ignore 文件配置
- CentOS配置git客户端,使用密钥检出项目文件
- Git版本库使用.gitignore建立项目文件过滤规则
- android studio 版本控制 .gitignore 文件配置 &&移除已上传到git的不需版本控制的文件
- iOS- <项目笔记>项目配置常见文件