Skip to content

Instantly share code, notes, and snippets.

@ranmyfriend
Created June 6, 2018 07:14
Show Gist options
  • Save ranmyfriend/e20752dd87b7cecc77cc0098aeba43bd to your computer and use it in GitHub Desktop.
Save ranmyfriend/e20752dd87b7cecc77cc0098aeba43bd to your computer and use it in GitHub Desktop.
Refer: https://stackoverflow.com/questions/34230191/added-pod-files-and-pushed-how-to-undo-how-to-use-gitignore-in-xcode-github/34239746
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:
Open terminal and go through your project folder where the .git folder is located
Type touch .gitignore
Type echo "Pods/" > .gitignore
More informations : here
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment