在项目目录下右键 Git Bash Here 输入如下命令: (将testLocalBranch修改为test) $ git branch -m testLocalBranch test 效果如下: 修改后,查询本地分支