0%

创建新的分支+打开v4.0项目

2018年3月8日 上午1:18

在v1.0的初级上创建新的分支v2.0:

1
2
3
4
5
6
7
8
9
localhost:mmall czh$ git checkout -b v2.0 origin/v1.0
M .idea/workspace.xml
Branch v2.0 set up to track remote branch v1.0 from origin.
Switched to a new branch 'v2.0'
localhost:mmall czh$ git branch
master
v1.0
* v2.0
localhost:mmall czh$

注:
上步报错:# fatal: ‘origin/dev’ is not a commit and a branch connot be created from it
处理方式:重启idea

Git 中 HEAD 是什么东西,为什么会出现在分支里? - SegmentFault 思否

对idea进行配置,让idea读懂我们的项目结构:


识别为maven项目:


idea打开maven项目并进行识别 - CSDN博客

通过maven自动进行idea的配置: