参考链接:
1,https://blog.csdn.net/shiren1118/article/details/7761203
2,http://www.cnblogs.com/xwdreamer/archive/2012/05/29/2523958.html
To github.com:zhuchangli/generatorSqlmapCustom.git
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'git@github.com:zhuchangli/generatorSqlmapCustom.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.
错误操作流程是:
在idea上完成了工程,在提交git
git add.
git commit -m "×××××"
git push -u origin master
就出错了我的出错原因和链接1是一样的,
使用:git push -u origin master -f 搞定
但是有提示本人未实测,操作需要小心:
勾选强制覆盖已有的分支(可能会丢失改动)