git 错误error: failed to push some refs to

具体报错信息如下:

error: failed to push some refs to 'https://gitee.com/cn_xxxxx/node.git'
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 push origin HEAD:master -f 
上一篇:C#爬虫试验笔记01-匹配成对括号


下一篇:jupyter notebook重新导入模块