Added pod files and pushed. How to undo? how to use gitignore in Xcode & github?

That’s correct, you need to add the Pods directory to your .gitignore

1) Remove your files from your github repository:

git rm -r Pods/

and don’t forget to commit and push

2) Create a gitignore file:

  1. Open terminal and go through your project folder where the .git folder is located
  2. Type touch .gitignore
  3. Type echo "Pods/" > .gitignore

3) (Added from Gabriel’s comment) Last step, remove them from the remote:

git rm -r --cache Pods/

More informations : here

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)