Gitee is unable to push the updated version. The error “updates were rejected” is prompted

There are some collaborative office development times,Or useGITVersion control is better,And some open source software can be downloaded and released inGITHUBperhapsGITEEIterations on easy versions,Otherwise, the latest version will be repackaged every time. But the former is not good at home,So Lao Jiang recently began to use GITEE.

It appears when the version is updated:

error: failed to push some refs to ‘https://gitee.com/***/****.git’
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: ‘git pull …’) before pushing again.
hint: See the ‘Note about fast-forwards’ in ‘git push –help’ for details.

There is such a problem,There should be no local modification and synchronous saving of the file,It’s directly in theGITEECaused by deleting and modifying files above,Result in unequal files.Let’s take an approach here,Make sure that there is no problem with the file directly,Push past updates directly.

git push -f origin master

We should use it carefully here,Make sure that what you want to update is corresponding.His false reminders were well intentioned,Because I did find that your files were not equal.

Related Article
Two methods of using CSS style to intercept the length of the title do not need to use functions

For example, when we make the website template, or choose to download to a good default, maybe due to the Read more

Method to solve the disorder of Chinese content in MySQL database submitted by PHP

Whether it is ASP or PHP programming language, or even other web languages, the basic application is nothing more than Read more

Two regular expression verification methods for PHP user registered mailbox

Generally, when we register or log in to an account on the web, we need to verify not only whether Read more

Three common methods of PHP connecting MySQL database

For PHP entry-level users, we only need to master the basic database write, read, edit, delete and other basic operations. Read more

Leave a Reply

Your email address will not be published. Required fields are marked *

*
To prove you're a person (not a spam script), type the security word shown in the picture.
Anti-spam image