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

你可能感兴趣的:(iOS sourcetree设置忽略文件)