欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

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

程序员文章站 2022-07-13 21:11:05
...

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

成功!

相关标签: GIT 报错