Ignoring Pods folder in Git is painful until I find this solution

Chhorn Ponleu
May 17, 2021

As a React Native developer, I have been solving the Pods conflict and error for a few year.

Every times I do pod install it create different pod file. Although I have /ios/Pods in my .gitignore , git still tracking file changes in the folder. I had been suffering from this issue for years until I found this solution.

I keep searching for a solution and I came across this stackoverflow. I did the below command

> cd root_project
> git rm -rf --cached ios/Pods

And push the code normally.

And thankfully Git never track my Pods folder again

--

--

Chhorn Ponleu

A software developer who like to keep things simple