我开始在Xcode项目中使用Git,并最近发现可以使用.gitignore和.gitattributes文件来忽略编译器和系统产生的无用信息。既然我已经放置了.gitignore和.gitattributes文件,那么我该如何“应用”新的忽略规则并从版本控制中摆脱冗余内容?
我的 .gitignore 文件:
# xcode noise
*.modelv3
*.pbxuser
*.perspective
*.perspectivev3
*.pyc
*~.nib/
build/*
# Textmate - if you build your xcode projects with it
*.tm_build_errors
# old skool
.svn
# osx noise
.DS_Store
profile
我的.gitattributes文件内容如下:
*.pbxproj -crlf -diff -merge
谢谢!