I added a git ignore file to my Xcode project with the following commands: touch .gitignore then open .gitignore and copy and pasted this into the git ignore content (and uncommented the line that had Pods/ line) and saved the file. 
But when I still try to commit (have already committed numerous times) in Xcode, the Pods file is still there and already checked to commit.
How can I have my Pod file not be checked and have the git ignore work with my Xcode project?
 
    