1.idea打开项目主干 2.选择项目右键选择git 3.点击后如图:选择new branch 3.1如图 4.push到gitlab上 5.点击这里你就可以看到你的分支了 6.idea 切换到分支开发 6.