Error: "update Were Reject because the remote work that you do not have locally"

Asked

Viewed 40 times

2

I’m trying to store a project for Github by git, but when I use the command:

git push oringin master

Displays this message:

Updates Were Reject because the remote work that you do not have locally. This is usually caused by Another Repository pushing to the same ref. You may want to first integrates the remote changes before pushing Again.

Translation:

Updates have been rejected due to remote work that you don’t have locally. This is usually caused by another repository running push for the same ref. You may want to first integrate the remote changes before running the push command again.

How can I solve?

  • Writing "Someone helps me" or unintuitive titles is totally redundant, try to look at other questions and analyze how people do it, something else sub in Portuguese has nothing to do with subi or subir. Take this as a constructive criticism.

  • Are you sure it’s oring ? The correct command is not git push origin master?

  • And this I forgot to put origin, I was storing normal every version of the project on github, but after I clicked on the readme la option on github, I put some comments, this presenting this error now when trying to push. You know how to solve this problem ?

1 answer

2


The error is saying that the repository has modifications that you do not have in your local repository. Then you must first give a "pull" to update your local code and then push.

git pull origin master.
git push origin master.
  • Thanks man, really solved my problem, still thought of a git pull , however I did not know that would solve the problem , thanks friend.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.