設(shè)置git&svn 忽略文件完整版

1.svn

打開(kāi)cornerstone


Snip20190227_4.png
Snip20190227_5.png

復(fù)制粘貼 :
.DS_Store,build/,.pbxuser,!default.pbxuser,.mode1v3,!default.mode1v3,.mode2v3,!default.mode2v3,.perspectivev3,!default.perspectivev3,.xcworkspace,!default.xcworkspace,xcuserdata,profile,.moved-aside,DerivedData,.idea/,.o,.lo,.la,.al,.libs,.so,.so.[0-9],.pyc,.pyo,.rej,~,##,.#,..swp,.xcuserdata,xcuserdata,Pods,*.lock,.xcuserstate

2.git

執(zhí)行快捷鍵 shift+commmand+. 打開(kāi)隱藏文件 ,再敲一次這個(gè)快捷鍵即可還原


Snip20190227_6.png

找到.gitignore 沒(méi)有的話自己可手動(dòng)添加一個(gè)
復(fù)制粘貼:

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

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

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

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

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