• 新建分支前 xff0c 先看一下目前是在哪个分支 可以看到下图我是在master分支上 使用以下命令创建新分支 xff0c 并切换到新分支 git checkout b main 创建main分支并切换到main xff0c main可以换