git 上传项目到分支 步骤 git init git add . git commit -m'代码描述' git remote add origin 远程仓库地址 git branch xxx # 创建新分支 git checkout xxx # 转换到新建分支下,也可以一步到位 git checkout -b xxx git push -u origin xxx 补充: git branch # 查看分支