Home > Software design >  Xcode: Delete files but still tracked by git
Xcode: Delete files but still tracked by git

Time:12-30

I delete files from my project that I no longer want. But when I want to commit, git keeps tracking them as "new file: project / myFile.swift"

How can I do to delete files permanently in Xcode? so they don't show up in git when I want to commit ?

is it possible to fix this without using git ignore?

CodePudding user response:

Delete files from Xcode

Instead of clicking Remove Reference, click Move to Trash. Removing the reference only removes the file from Xcode project but it does not remove it from the project directory.

  • Related