git 创建分支并提交到远程 git add . git commit -m"log" git checkout -b [newBranch] git push origin [newBranch] 其中 git checkout -b [newBranch]为新建并切换到newBranch分支