ios忽略文件.gitignore

ios-xcode-添加-oc的忽略文件。

 第一步 cd 到項目的根目錄下,例如:
 打開終端,cd項目路徑( 將ExtensiveCompany文件拖入到終端),回車。
Snip20160427_3.png
 第二步:touch .gitignore,回車。
 第三步:open .gitignore,回車。
 第四步:將下面文件拷貝到.gitignore,保存。附上最新的github忽略文件網(wǎng)址[Markdown]https://github.com/github/gitignore

  # Xcode
  #
  # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore

  ## Build generated
  build/
  DerivedData/

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

  ## Other
  *.moved-aside
  *.xcuserstate

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

   # 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/

   # 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://github.com/fastlane/fastlane/blob/master/fastlane/docs/Gitignore.md

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

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

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