1 创建好项目,选择VCS - > Import into Version Control -> Create Git Repository
接下来指定本地仓库的位置,按个人习惯指定即可,例如这里选择了项目源代码同目录

idea+git 创建项目并提交到远程Git仓库
点击OK后就开始初使化本地仓库,注意,这里仅仅是本地的。

2 执行add,commit,push命令

idea+git 创建项目并提交到远程Git仓库

idea+git 创建项目并提交到远程Git仓库

idea+git 创建项目并提交到远程Git仓库


 

相关文章:

  • 2021-10-17
  • 2022-01-07
  • 2021-08-26
  • 2022-02-08
  • 2022-02-08
  • 2021-09-29
猜你喜欢
  • 2021-09-22
  • 2021-08-18
  • 2021-04-29
  • 2022-12-23
  • 2021-11-18
  • 2021-06-01
相关资源
相似解决方案