Search code examples
iosxcodegithubgitignorecocoapods

What can I add to my .gitignore so that I can prevent checking in pods on my github repo?


I am looking to transition to checking in only the podfile in my Github repo instead of constantly checking in every single pod whenever I run a pod install. . right now my gitignore code CocoaPods looks like this looks like this

    Pods/Pods-Acknowledgements.markdown
    Pods/Pods-Acknowledgements.plist
    Pods/resources-to-copy.txt
    Pods/resources-to-copy-*.txt

I am still getting a ton of xcconfig files from Cocoapods that are being checked in. help please?


Solution

  • I'm not sure how your files are structured. But you should just be able to add Pods/* to your .gitignore and then when you want to add a specific file to git use:

    git add Pods/IWANTTHISFILE --force
    

    That should do the trick.