当使用git push origin master 报错时

来源:互联网 发布:库班空战 知乎 编辑:程序博客网 时间:2024/06/04 19:01

错误为
error: failed to push some refs to 'https://github.com/***'
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.

这个时候是出现版本时间不一致,我们可以采用git -u push origin master -f的方式进行覆盖强制推送

原创粉丝点击