git checkout -b dev git checkout 命令加上 -b 参数表示创建并切换,相当于以下两条命令: git branch dev git checkout dev git branch * dev master