When you will get this error?
This is a very common error in Xcode. It comes when the user tries to commit and push the changes into a git branch.
Reason for this error
Xcode shows this error when your online repository has some updates files than the current version on your system.
In other words, your repository is updated by someone. Generally when we add, Readme.
Solution for this error
To avoid this error, we need to pull the updated repository and then only we can commit the new changes. So, to solve it
– pull the updated repository
– merge your code (The updated code you wrote on your machine)
– Commit and push again