1. 打开cmd并跳转到要创建maven项目的目录
2. 使用maven命令创建项目
? ? ?mvn archetype:generate -DgroupId=com.mary.demo -DartifactId=SpringBootDemo -Dversion=1.0-SNAPSHOT
-DarchetypeArtifactId=maven-archetype-quickstart
?
1. 指定文件夹打开git bash命令
2.将maven项目初始化为git项目
3.将本地所有文件提交到git本地仓库
git add *
git commit -m "init the empty repo"
4.创建ssh-key
5.把ssh pub key拷贝到github上SSH keys
6.将本地仓库与github上的仓库进行关联
?git remote add origin https://github.com/marylgao/SpringBootDemo.git
7.将本地仓库推送到远程仓库
? ?git push origin master
?