解决git更新时提示Can't Update No tracked branch configured for branch
https://blog.csdn.net/u012556114/article/details/101614602
今天自己总结的小例子准备提交代码时报错,报错信息如下:
Can't Update
No tracked branch configured for branch master or the branch doesn't exist.
To make your branch track a remote branch call, for example,
git branch --set-upstream-to=origin/master master (show balloon)
意思就是git找不到你要提交的分支,不知道提交到哪里
1.解决方法为:
打开git工具命令行,输入以下命令:
git branch --set-upstream-to=master origin/master
2.设置好后可以重新提交代码,如下图所示:可以看到代码提交成功已经推送到远程仓库