cd /Users/xiongchen/Documents/tour_ios/DrivingTour
touch .gitignore
然后 vim .gitignore进入编辑 添加以下的代码
xiongdeMacBook-Pro:DrivingTour xiongchen$ ls -a
. DrivingTour DrivingTourUITests
.. DrivingTour.xcodeproj Podfile
.DS_Store DrivingTour.xcworkspace Podfile.lock
.gitignore DrivingTourTests Pods
xiongdeMacBook-Pro:DrivingTour xiongchen$ vim .DS_Store
xiongdeMacBook-Pro:DrivingTour xiongchen$ vim .gitignore
进入到.gitignore文件里添加如下的代码,然后esc,: wq 退出
# Xcode
.DS_Store
*/build/*
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata
profile
*.moved-aside
DerivedData
.idea/
*.hmap
*.xccheckout
*.xcworkspace
!default.xcworkspace
#CocoaPods
Pods
!Podfile
!Podfile.lock
网友评论