受欢迎的博客标签

git error:rejected Updates were rejected because the tip of your current branch is behind its remote counterpart

Published

发布到远程存储库时遇到错误:

rejected Updates were rejected because the tip of your current branch is behind its remote counterpart. Integrate the remote changes  before pushing again.已在存储库 E:\Nopcommerce\wwwiaspnetcoreNetcore20RTM 中本地创建提交 1073b14a

Error: failed to push some refs to 'https://***.visualstudio.com/DefaultCollection/_git/wwwiaspnetcorecom'Error: hint: Updates were rejected because the tip of your current branch is behindhint: 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.  

vs 2017:  团队设置里勾选 强制提交 选项,然后提交解决。    

https://stackoverflow.com/questions/10298291/cannot-push-to-github-keeps-saying-need-merge.

 

2.git error:rejected Updates were rejected because the remote contains work that you do not have locally. This is usually caused by another repository pushing to the same ref. You may want to first integrate the remote changes before pushing again.

vs 2019

step 1: 勾选 强制提交

step 2:pull

step 3: push