返回

Github上创建maven项目

发布时间:2022-10-29 13:37:40 275
# ssh# git# github

Github上创建maven项目_开发语言

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

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

  git add *

  git commit -m "init the empty repo"

  

Github上创建maven项目_开发语言_03

  4.创建ssh-key

  

Github上创建maven项目_git_04

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

  

Github上创建maven项目_github_05

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

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

  

Github上创建maven项目_git_06

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

  ? ?git push origin master

  ?

特别声明:以上内容(图片及文字)均为互联网收集或者用户上传发布,本站仅提供信息存储服务!如有侵权或有涉及法律问题请联系我们。
举报
评论区(0)
按点赞数排序
用户头像
精选文章
thumb 中国研究员首次曝光美国国安局顶级后门—“方程式组织”
thumb 俄乌线上战争,网络攻击弥漫着数字硝烟
thumb 从网络安全角度了解俄罗斯入侵乌克兰的相关事件时间线
下一篇
如何用命令行在github新建一个项目 2022-10-29 13:13:27