怎样办理:
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to ‘https://gitee.com/wu-xianfengx/shared_bike.git’
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. If you want to integrate the remote changes,
hint: use ‘git pull’ before pushing again.
hint: See the ‘Note about fast-forwards’ in ‘git push --help’ for details.
原因:
由于你试图将本地的 master 分支推送到长途的 master 分支时,发现长途分支有新的提交,而你的本地分支落后于长途分支。
办理方案:
1、逼迫推送:origin ->长途堆栈名。master->分支。