repo: error: no branches ready for upload 问题解决方法

博主前两天使用repo upload代码时,遇到‘repo: error: no branches ready for upload’问题。网上认为是本地分支未关联远程分支所致,但该方法未解决其问题,博主通过自己的方法解决了此问题。

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

repo: error: no branches ready for upload 问题解决方式

前两天在使用

#git add .
#git commit 
#repo upload .

repo upload 代码时 遇到 “repo: error: no branches ready for upload”的问题。在网上搜了下,都是在说这个是local branch没有关联到remote branch导致,网上的推荐方法如下

/*checkout new branch*/
#git checkout -b newbranch origin/master
/*merge branch*/
#git merge temp
#repo upload .

但是这个方法并没有解决我的问题,新的branch 在repo upload 时 仍然出现 no branches ready for upload 问题。我通过以下方法解决了

#git add .
#git commit -s -m "xxx"
#repo upload .
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值