Git错误:error:failed to push some refs to '[email protected]:name/project.git'

Everyone in the local repository to the remote repository by uploading a file, it will report the  error: failed to push some refs to  '[email protected]: name / project.git' mistakes.

Solutions are as follows:

  git pull --rebase origin branch name

  We will update the remote repository merged into the local repository, - rebase role is to remove the local warehouse just the commit.

Then do the following in order:

  git pull origin branch name

  git push origin branch name

Guess you like

Origin www.cnblogs.com/HuiH/p/11922421.html