fatal: The current branch master has multiple upstream branches, refusing to puh. git push error!

当遇到GitPush时出现多个上游分支错误,可通过配置remote.origin.pushHEAD解决。具体步骤为使用gitconfig设置,然后重新执行GitPush命令。

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

git push时报错:
$ git push

fatal: The current branch master has multiple upstream branches, refusing to puh.

措施:
输入
$ git config remote.origin.push HEAD

重新push

$ git push

Enumerating objects: 43, done.
Counting objects: 100% (43/43), done.
Delta compression using up to 2 threads.
Compressing objects: 100% (15/15), done.
Writing objects: 100% (22/22), 1.85 KiB | 472.00 KiB/s, done.
Total 22 (delta 7), reused 0 (delta 0)
To http://git.gag.cn/bigData/DataService.git
   a13667d..a47ba9c  HEAD -> master
Everything up-to-date
Everything up-to-date

成功!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值