• cdEnter the project folder and generate.gitignorefile
touch .gitignore
Copy the code
  • open .gitignoreFile add ignore filter content and save push upload
# Xcode
#
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
# Mac OS X Finder and whatnot
.DS_Store# #Build generated
build/
DerivedData/# #Various settings
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata/# #Other
*.moved-aside
*.xcuserstate
*.xccheckout
## Obj-C/Swift specific
*.hmap
*.ipa
#*.dSYM.zip
#*.dSYM

#CocoaPods
Pods/
Pods
.DS_Store
Podfile.lock
/.DS_Store
Podfile.lock
/Podfile.lock
Copy the code

If you don’t want to ignore the submit Pods content, remove the last #CocoaPods inclusion


Query to create ignore content for all languages