有些文件不需要上傳到倉庫, 比如pods, 比如xcode的個人自定義設置, 無效上傳會增加同伴拉取工作與時間成本.
- 設置sourcetree的忽略文件
- 打開sourcetree -> 偏好設置, 或者快捷鍵command +,
-
git -> 編輯文件
*~
# 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