赞
踩
parkin@wangyan:~/duapp/consignment$ git push
To code.aliyun.com:xxx/xxxxxx.git
! [rejected] wy -> wy (non-fast-forward)
error: failed to push some refs to 'git@code.aliyun.com:xxx/xxxxxx.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.
某次提交时多提交了一些文件,后期用git reset --mixed把这些文件删掉了,重新add commit push。导致本地仓库和远程仓库文件不一致。所以我直接强制推送到远程分支了,成功的如下图。
git push -u origin xxxx -f
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。