Currently, git submit projects mainly ignored temporary files, configuration files, or generate documents, will be very different at different ends of the development of these documents, if git add. Push these files to the remote, it will result in frequent changes and different development end questions submitted. We need to add to ignore file .gitignore. It comprises the following steps:
Cd .git terminal project directory and the same layer (see hidden files)
touch .gitignore // generate files in the directory .gitignore
open .gitignore // Open .gitignore (txt) file
Writing is ignored directory
# Xcode
.DS_Store
*/build/*
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata
profile
*.moved-aside
DerivedData
.idea/
*.hmap
App.xccheckout
App.xcscmblueprint
#CocoaPods
Pods/
Podfile.lock