1、远端建立仓库时存在一些文件,阻止提交
报错信息
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'https://************.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 push -f origin master //强制推送
本文解决在远端仓库存在文件阻止提交的问题,详细介绍了错误信息及解决步骤,通过使用强制推送命令,快速解决Git推送遇到的非快进更新错误。
749

被折叠的 条评论
为什么被折叠?



