0

I´m writing on a protject and work with a Google Api Key. I want to ignore the file where the key is stored, that nobody can see it. But it doesnt work. I found no question, that answers my question.

I added this code to my .gitignore file:

# Google Api Key
/GoogleService-Info.plist

But the fle is not ignored. I thought that now every file with this name have to be ignored. What´s the problem here?

Tom
  • 486
  • 1
  • 2
  • 11

1 Answers1

1

you have to delete the file if it's already committed; Gitignore gives you the capability to not track specified files on it.

Moussa ELaQ
  • 119
  • 5