git出现can‘t update master has no tracked branch

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

解决方案:

git push --set-upstream origin master

这样本地分支就和远程master分支关联了,解决了。

猜你喜欢

转载自blog.csdn.net/weixin_49177159/article/details/129850695