Failure to push

Asked

Viewed 44 times

0

When you push on my machine I received the following error :

hint: Updates Were Rejected because the remote contains work that you do hint: not have locally. This is usually caused by Another Repository pushing hint: to the same ref. You may want to first Integrate the remote changes hint: (e.g., 'git pull ...') before pushing Again. hint: See the 'Note about fast-forwards' in 'git push --help' for Details.

Why is this happening and how to solve ?

  • It seems that this repository that you are trying to move your stuff up has changes that are not in your commit. Try doing what you’re asking, git pull... to fetch the "things" that are there in the repositories before trying to push.

1 answer

2


In the remote there are changes that you still do not have as considered in your local version. You should git pull and resolve merge conflicts before, if any, and then git push.

Browser other questions tagged

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