[SWIFT] Add .gitignore when creating a project in Xcode


When you create a project in Xcode, the initial commit is done without creating .gitignore, so add .gitignore and recommit.


Generate .gitignore

Generate .gitignore for Xcode at the following site and add it to the project. https://www.toptal.com/developers/gitignore

Cancel initial commit

Initial commit can be canceled with the following command instead of git reset. After canceling, commit again.

git update-ref -d HEAD

Recommended Posts

Add .gitignore when creating a project in Xcode
Escape processing when creating a URL in Ruby
Add a project in any folder with Gradle
Add a search function in Rails.
[Rails] Creating a new project with rails new
About what I did when creating a .clj file in Clojure
Exporting project and war files when creating server-side Java in Eclipse
[Xcode] How to add a README.md file
When seeking multiple in a Java array
Creating a project (and GitHub repository) using Java and Gradle in IntelliJ IDEA
[Creating] A memorandum about coding in Java
Creating a Servlet in the Liberty environment
Creating a matrix class in Java Part 1
Be careful when setting the class name when creating a document-based app in Swift
Run a Spring Boot project in VS Code
A note when you want Tuple in Java
Add an item when logging in with devise
Run JUnit and Spock in a maven project
How to add a classpath in Spring Boot
Java tips-Create a Spring Boot project in Gradle
(Ruby on Rails6) Creating data in a table
When the project is not displayed in eclipse
Keyboard when tapping a text field in WebView
[CentOS, Eclipse] Load a library file in a C project
Things to watch out for when creating a framework
How to create a Spring Boot project in IntelliJ
Add an external jar file in your IntelliJ project.
A memorandum when creating a REST service with Spring Boot
What I learned when building a server in Java