问题、场景、需求(也可)
git提示Can't update(master has no tracked branch)
场景
gitlab迁移到gitee项目
绑定新的地址发现报错多分支
原因
本地分支和远程分支没有关联,需要关联远程分支
解决方案
git push --set-upstream origin master
本地分支就和远程master分支关联即可。
git提示Can't update(master has no tracked branch)
gitlab迁移到gitee项目
绑定新的地址发现报错多分支
本地分支和远程分支没有关联,需要关联远程分支
git push --set-upstream origin master
本地分支就和远程master分支关联即可。