1 go to GitHub first. Download the latest ignored files download Https://github.com/github/gitignore
2 and then find Swift.gitignore put the inside of the pod in front of the # Delete and then save
3 Create a new project on the code cloud and clone the project to a local
git clone [email protected]:* *******
Put the missing file in the cloned project, go in. cd Current project and enter command
MV Swift.gitignore. Gitinore Hide Ignore file
/*
Defaults write Com.apple.Finder appleshowallfiles Yes && killall Finder//Show hidden files
Defaults write Com.apple.Finder appleshowallfiles no && killall Finder//Do not show hidden files
*/
Then create a swift project in the current project to ignore the file and project submission code on the cloud
git Add.
Git commit-m "Initialize project more than add Swift Ignore file"
git push
So the project is initialized.
Swift Project initialization and addition of ignore file Swift.ignore