I have added in .gitignore like this:
Pods/
MyStarhub.xcworkspace/
*/xcuserdata/
DerivedData/*
Podfile.lock
*.DS_Store
*.icloud
But git keeps tracking .Ds_Store Podfile.lock for some reason.
I have added in .gitignore like this:
Pods/
MyStarhub.xcworkspace/
*/xcuserdata/
DerivedData/*
Podfile.lock
*.DS_Store
*.icloud
But git keeps tracking .Ds_Store Podfile.lock for some reason.
Probably it's because git is still tracking the files you pushed previously. Try:
git rm --cached .DS_Store
git rm --cached Podfile.lock
Or simply delete the files, commit and push