赞
踩
起因——同事拉取我的代码后更改再上传 我拉取失败 修改后提交也失败 报错如下
git.exe push --progress “origin” master:master 错误
error: failed to push some refs to ‘https://gitee.com/zyfs_company/huishua_uniapp_e-cigarette_customer.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.错误:无法将某些引用推送到’https://gitee.com/zyfs_company/huishua_uniapp_e-cigarette_customer.git’
提示:更新被拒绝,因为当前分支的提示已过期
提示:它的远程对应。集成远程更改(例如。
提示:“git pull…”),然后再推。
提示:有关详细信息,请参阅“git push–help”中的“Note about fast forwards”。
git pull --rebase origin master
error: Pulling is not possible because you have unmerged files.
hint: Fix them up in the work tree, and then use 'git add/rm ’
hint: as appropriate to mark resolution and make a commit.错误:无法拉取,因为您有未合并的文件。
提示:在工作树中修复它们,然后使用’git add/rm’
提示:根据需要标记解析并进行提交。
最后解决冲突 提交成功
纯属记录 可参考性不高
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。