笔者运行环境:

1. windows 10

2. cygwin,安装openssh

3. git版本 2.11.0

 

前置操作,如果已经配置可以略过

1.  cygwin下执行 ssh-keygen -t rsa 后一路回车

2.  cat ~/.ssh/id_rsa.pub 得到公钥key

3. github登录后,SSH key中添加公钥

 

创建步骤

1. 登录github,创建一个新的repository:test

2. git clone到本地  

3. cd test &&  mvn archetype:generate -DgroupId=com.hangzhou.hefei -DartifactId=test -DarchetypeArtifactId=maven-archetype-quickstart -DinactiveMode=false && mv test/* ./ && rm -rf test

4. mvn idea:idea 或者 mvn eclipse:eclipse 创建ide可以识别的工程

 

完成。

相关文章:

  • 2021-04-09
  • 2021-05-29
  • 2021-10-23
  • 2022-12-23
  • 2021-07-02
  • 2021-11-14
  • 2021-07-31
猜你喜欢
  • 2021-04-30
  • 2022-01-08
  • 2022-01-05
  • 2022-02-07
  • 2021-04-20
  • 2021-10-31
  • 2021-05-26
相关资源
相似解决方案