1、failed to push some refs to
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g., 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
碰到这个问题,先执行git pull,
2、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.
解决了上面的问题之后,再执行git push报了这个错误,在使用git push的时候如果没有加 -f会出现这个问题,加上-f之后代码成功的提交到gitblit云端服务器上
3、git bash执行命令后提示:Please enter the commit message for your changes
这时候在当前页面输入 :wq回车就可以退出。