您的位置: 首页 > IT文章 > git如何新建分支 git如何新建分支 分类: IT文章 • 2025-01-05 23:32:01 1) 切换到基础分支,如主干 git checkout master 2)创建并切换到新分支 git checkout -b panda git branch可以看到已经在panda分支上 3)更新分支代码并提交 git add * git commit -m "init panda" git push origin panda 4)在git代码管理界面经可以看到panda分支了,成功~~