相关疑难解决方法(0)

将git .gitignore规则应用于现有存储库

我开始使用带有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
Run Code Online (Sandbox Code Playgroud)

我的.gitattributes文件是:

*.pbxproj -crlf -diff -merge
Run Code Online (Sandbox Code Playgroud)

谢谢!

git

47
推荐指数
3
解决办法
4万
查看次数

标签 统计

git ×1