前提假设你已经有 gitee 账号了:

0、在 gitee 里面先创建一个创库,简单描述项目,不要初始化什么 readme ,如果操作了,等下会和 idea 里面的项目冲突,比较麻烦,这里简单创建库,得到“克隆下载”的 url 即可!


1、本地创建一个项目(如果是拷贝别的项目,记得先 delete 了里面的 .git 目录)

2、在 idea 里面,vcs -- import into version control -- create git repository ,选择项目所在目录

3、项目会变成红色,先项目右键  Git  add 提交,再  Git commit Directory 提交,在 Git Repository -- Remotes ,弹出的输入框点击旁边的 + 号,把步骤0 里面 克隆下载的 url(https下的连接)复制进去,点击 ok

4、项目右键 Git -- Repository -- Push 。

5、这个时候,已经成功提交到远程 gitee 里面了,之后去 gitee 网页,刷新,即可看到项目!

相关文章:

  • 2021-04-16
  • 2021-09-09
  • 2022-12-23
  • 2021-05-16
  • 2021-12-11
  • 2021-09-25
  • 2021-04-29
猜你喜欢
  • 2021-04-28
  • 2021-09-10
  • 2021-06-25
  • 1970-01-01
  • 2022-01-18
  • 2022-02-08
相关资源
相似解决方案