git.exe push --progress “origin“ master:master 错误 代码提交失败

git.exe push --progress “origin” master:master 错误 代码提交失败

起因——同事拉取我的代码后更改再上传 我拉取失败 修改后提交也失败 报错如下

git.exe push --progress “origin” master:master 错误

在这里插入图片描述

尝试方法—— 输入两命令git pull origin master ,执行完成再输入git push -u origin 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’

提示:根据需要标记解析并进行提交。

最后解决冲突 提交成功

纯属记录 可参考性不高

  • 3
    点赞
  • 10
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值