1、首先在github上建立项目
2、在硬盘中clone 下对应的项目
3、在项目文件夹内git bash命令
4、mvn archetype:generate -DgroupId=com.xxx.xxx -DartifactId=helloworld -Dversion=1.0-SNAPSHOT -DarchetypeArtifactId=maven-archetype-quickstart
5、git init
6、git add *
7、git commit -m "init the empty repo"
ok 大功告成 idea打开一下就ok了