When i try to initialize pod file to use cocoapods via terminal, it gives me this error. How to fix it.
cocoapods
/Library/Ruby/Gems/2.0.0/gems/cocoapods-
I followed this
After installing command line tools, I closed it and opened terminal again. Now when I checked version git --version, it gave me update version 2.10.0 then I ran other commands for cocoapod.
git --version
Now it is working.