swiftxcodexcode11.4

How do I add a new swift file into the SCM? (Xcode 11.4)


I noticed that my newly created swift file in the xcode project was faded, and had the letter 'A' beside it unlike my other existing swift files that had the letter 'M' beside it. I found out that A means that it is a new file and should be added to SCM. I never had this issue before while creating a new file, so what and how exactly am I supposed to add the new file to the SCM?


Solution

  • You might have checked Create Git repository checkbox while creating a new project.

    Now your project is tracking all additions / modifications since it was created. If you are not interested in seeing what has changed, you can ignore this.

    In case you want to see what has changed since the initial commit - you can use any Git client like https://gitup.co/