git push 到远程分支时, 出现这种情况,是因为没有设置默认push 的分支;
fatal: The upstream branch of your current branch does not match
the name of your current branch. To push to the upstream branch
on the remote, use
git push origin HEAD:分支名称
To push to the branch of the same name on the remote, use
git push origin 分支名称
可以通过git 命令:
git config --global push.default "current"
来设置默认push 的分支