0
点赞
收藏
分享

微信扫一扫

Github上创建maven项目


  

Github上创建maven项目_git

  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项目

  

Github上创建maven项目_java_02

  3.将本地所有文件提交到git本地仓库

  git add *

  git commit -m "init the empty repo"

  

Github上创建maven项目_maven_03

  4.创建ssh-key

  

Github上创建maven项目_git_04

  5.把ssh pub key拷贝到github上SSH keys

  

Github上创建maven项目_java_05

  6.将本地仓库与github上的仓库进行关联

  ?git remote add origin https://github.com/marylgao/SpringBootDemo.git

  

Github上创建maven项目_github_06

  7.将本地仓库推送到远程仓库

  ? ?git push origin master

  ?

举报

相关推荐

0 条评论