iOS sourcetree设置忽略文件

有些文件不需要上传到仓库, 比如pods, 比如xcode的个人自定义设置, 无效上传会增加同伴拉取工作与时间成本.

  • 设置sourcetree的忽略文件
  • 打开sourcetree -> 偏好设置, 或者快捷键command +,
command +,
  • git -> 编辑文件


    git -> 编辑文件
.gitignore_global

*~ 
# Mac OS X Finder and  Whatnot
.DS_Store
/build/
*.pbxuser
.db
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
.perspectivev3
!default.perspectivev3
xcuserdata/
*.xcbkptlist
*.xcuserstate
project.xcworkspace
xcuserdata
UserInterfaceState.xcuserstate
project.xcworkspace/
xcuserdata/
UserInterface.xcuserstate
profile
*.moved-aside
DerivedData
.idea/
.o
*.hmap
*.xccheckout
*.xcworkspace
*.xcuserstate
!default.xcworkspace
*.a
!lib.a


*~
xcshareddata

# Xcode

xcuserdata

## Obj-C/Swift specific
*.hmap
*.ipa
*.dSYM.zip
*.dSYM


#CocoaPods
Pods
!Podfile
Podfile.lock

## Build generated
build/
DerivedData/
Swift specific

## Other
*.moved-aside
*.xccheckout
*.xcscmblueprint

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容