执行git pull时报错command 'git pull && git fetch --tags' was 1 instead of 0.

执行git pull时报错

Exit status of command 'git pull && git fetch --tags' was 1 instead of 0. There is no tracking information for the current branch. Please specify which branch you want to merge with


6A7C6F6A-AD7B-43A6-AB68-47EAF67B32E3.png

根据提示设置主分支

git branch --set-upstream-to=origin/<branch> master
比如git branch --set-upstream-to=origin/master master