命令如下: 1:本地创建分支dev $ git branch dev 2:下面是把本地分支提交到远程仓库 $ git push origin dev 3:查看一下远程仓库有几个分支 $ git branch -a