git给分支改名时报错:error: pathspec 'xxxx' did not match any file(s) known to git.

118 阅读1分钟

记录: 错误原因是指令错误 git分支改名的指令是 git branch -m [oldname] newname✔

不是git checkout -m [oldname] newname❌