git 将branch重命名之后HEAD不匹配的问题

62 阅读1分钟

“The upstream branch of your current branch does not match the name of your current branch”

解决方案:

  1. 将upstream先unset git branch --unset-upstream
  2. 重新 git push --set-upstream origin [branchname]