git推送時忽略pod文件和scheme改動

忽略scheme改動

通過Edit Scheme進入,取消勾選Shared


2222.jpg

忽略pod文件

多人開發(fā)時,因為cocoapod版本問題,所以隱藏pod文件,避免每次都要推送pod文件,操作如下
首先打開sourcetree的偏好設置,如圖


111.jpg

在文件中復制如下代碼即可:

*~
.DS_Store
## Build generated
build/
DerivedData/

## Various settings
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata/

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

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

# CocoaPods
#
# We recommend against adding the Pods directory to your .gitignore. However
# you should judge for yourself, the pros and cons are mentioned at:
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
#
Pods/
#
# Add this line if you want to avoid checking in source code from the Xcode workspace
#*.xcworkspace

# Carthage
#
# Add this line if you want to avoid checking in source code from Carthage dependencies.
# Carthage/Checkouts

Carthage/Build

# fastlane
#
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
# screenshots whenever they are needed.
# For more information about the recommended setup visit:
# https://docs.fastlane.tools/best-practices/source-control/#source-control

fastlane/report.xml
fastlane/Preview.html
fastlane/screenshots/**/*.png
fastlane/test_output

# Code Injection
#
# After new code Injection tools there's a generated folder /iOSInjectionProject
# https://github.com/johnno1962/injectionforxcode

iOSInjectionProject/
?著作權歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務。

相關閱讀更多精彩內(nèi)容

  • 主流的依賴管理有三大開源庫:最老牌的 CocoaPods, 新秀 Carthage, 官方的 Swift Pack...
    seedante閱讀 4,472評論 0 11
  • iOS開發(fā)過程中經(jīng)常使用到Cocoapods進行第三方庫管理,而第三方庫可能存在大文件,這個時候我們使用git是無...
    MMOTE閱讀 1,644評論 1 1
  • 因為要結局swift3.0中引用snapKit的問題,看到一篇介紹Xcode8,swift3變化的文章,覺得很詳細...
    uniapp閱讀 4,873評論 0 12
  • 1. 安裝 git 不同系統(tǒng)下 git 的安裝 Mac上可以在終端上輸入: git --version 來查看gi...
    學生陳希閱讀 1,800評論 0 4
  • CocoaPods操作手冊 本文檔介紹了啥? 為什么要使用CocoaPods? 如何安裝CocoaPods? Po...
    風小鉆閱讀 7,848評論 1 10

友情鏈接更多精彩內(nèi)容