当我们使用git 上传码云的时候报错:Push rejected Push to origin/master was rejected

本文讲述了在git推送代码到远程仓库时遇到Pushrejected错误,原因在于远程有未合并的更改。提供了拉取、合并或变基本地更改的步骤,以及使用gitpull自动合并的选项。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

在我们推送成果去git(码云)的过程中报错:Push rejected Push to origin/master was rejected

这个问题是我们在推的时候被拒绝了

控制台报错:

18:46:19.665: [zengqingqingandluoxuwen] git -c credential.helper= -c core.quotepath=false -c log.showSignature=false push --progress --porcelain origin refs/heads/master:refs/heads/master --set-upstream

error: failed to push some refs to 'https://gitee.com/princess-qingqing-ovo/ZengZengZengZhuZhu.git'

To https://gitee.com/princess-qingqing-ovo/ZengZengZengZhuZhu.git

hint: Updates were rejected because the remote contains work that you do

! refs/heads/master:refs/heads/master [rejected] (fetch first)<

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值