Search code examples
xcodegitgitignore

Xcode is not respecting a gitignore entry


I have a file called Authentication.plist in my Xcode project and added it to my .gitignore file. However, I can't stop it from being committed to git automatically when doing so via the xcode source control menu. Is there a more effective way to ensure it doesn't get committed?

Xcode project navigator showing the file staged

Screenshot of the .gitignore list


Solution

  • Use command git rm --cached Authentication.plist to untrack the file.