新建切换到新分支 git checkout -b branchname ## 下面两条命令的简写: git branch branchname git checkout branchname 更新代码到新分支 git add . git commit -m "message" git push origin branchname