When you commited your own code to remote then revert before commit: git reset --hard HEAD~1 Push new code to override remote server: git push --force origin Reset old file after you change and commit: git checkout develop -- ios/Podfile.lock