git push後出錯
參考連結:
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 '
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 搞定
但是有提示本人未實測,操作需要小心:
勾選強制覆蓋已有的分支(可能會丟失改動)