Git Updates were rejected because the tip of your current branch is behind 一例解决方案

git.exe push --progress "origin" master:master
To https://xxxxxxxxx.git
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'https://xxxxxxxxxxx.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.


我这主要原因是一个vs项目里有多个git  仓库,这个时候tgit插件只有右键那个comit,pull有用,工具栏和菜单里pull实际上不起作用的。

直接进目录pull解决问题,然后再comit&push,多个git仓库的项目尽量不要使用tgit操作。

posted @ 2020-09-15 19:23  zhaogaojian  阅读(288)  评论(0编辑  收藏  举报