0

I have tried to solve this by

  1. Deleting all pods and re installing
  2. Cleaning build folder
  3. Deleting .gitignore and recreating

However there are a few files within the Pods dir that continue to show up

I'm ignoring using this in my .gitignore since my initial commit - nothing in this has ever been committed.

Pods/

Note this has only started recently with a with a new pod update

When I try to commit I get the following.

All other pods within this dir are ignored.

I have looked at these, but no luck fixing

.gitignore ignoring whitelisted folder

.gitignore not ignoring folder

Gitignore not ignoring folders

.gitignore doesn't ignore files

This looked like it may have the solution but not sure if I want to try it, so decided to post and understand the reason why this is happening

gitignore does not ignore folder

Note: Running Swift 4.2 / Xcode 10.1

enter image description here

rmaddy
  • 314,917
  • 42
  • 532
  • 579
DogCoffee
  • 19,820
  • 10
  • 87
  • 120

1 Answers1

0

You were tracking this files so they are added to index. All you have to do before ignoring this files you have to untrack them. If you want to remove them from the index you have to type git rm -r --cached {name_folder} then use git commit -m "removed files from index" and change your .gitignore file.

dunajski
  • 381
  • 3
  • 15