ios gitignore

来源:互联网 发布:八字不合怎么办知乎 编辑:程序博客网 时间:2024/06/06 01:08

步骤:

     1. cd 到工程目录  与.git同目录;

     2. 创建.gitignore文件;

     3. 输入下文中的忽略内容;

     4. commit,push到git服务器

     5. 重启xcode

      应该在此commit的时候就能自动被忽略了。

 




.gitignore文件具体内容


.DS_Store
User Interface StateUserInterface.xcuserstate   
xcuserdata/  
project.xcworkspace/  *.xcuserstate  
project.xcworkspace  
xcuserdata  
UserInterfaceState.xcuserstate  
project.xcworkspace/  
xcuserdata/  
UserInterface.xcuserstate


*/build/*
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata
Podfile.lock
profile
*.moved-aside
DerivedData
.idea/
*.hmap
*.xccheckout
*.xcworkspace
!default.xcworkspace


#忽略CocoaPods
Pods/
!Podfile
!Podfile.lock




#忽略打包生成文件
log/
*.log
*.xcarchivce
*.ipa