[Bug0056] git提示Can't update(master has no tracked branch)

问题、场景、需求(也可)

git提示Can't update(master has no tracked branch)

场景

gitlab迁移到gitee项目
绑定新的地址发现报错多分支

原因

本地分支和远程分支没有关联,需要关联远程分支

解决方案

git push --set-upstream origin master

本地分支就和远程master分支关联即可。

猜你喜欢

转载自blog.csdn.net/qq_44138925/article/details/128843532