Updates were rejected because the remote contains work that you do not have locally
You can override any checks that git does by using “force push”. Use this command in terminal git push -f origin master However, you will potentially ignore the existing work that is in remote – you are effectively rewriting the remote’s history to be exactly like your local copy.