git提示:There is no tracking information for the current branch

问题

这个报错的意思是:新建的本地分支在推送远程仓库时,本地的分支与远程分支没有建立关联。
git提示:There is no tracking information for the current branch

查看关联

git branch -vv:可以查看本地分支与远程仓库的关联关系

可以看到并没有关联
git提示:There is no tracking information for the current branch

解决

按照git给的提示git branch --set-upstream-to=origin/SP_4.2.1_20200703_alpha

git提示:There is no tracking information for the current branch