jinghun

IDEA上的项目托管到码云步骤:
1、安装Git
2、idea上配置Git
    Setting-Version Control-Git
    把git.exe改为安装的Git的执行路径如:D:\Program Files\Git\cmd\git.exe
    点击Test,Successful即可
3、idea安装gitee
    启动 idea进入首页
    选择 Configure - Plugins
    选择 Browse repositories...
    搜索 gitee,安装插件
    重启 idea 即可
4、登录到码云
    Setting-Version Control-Gitee
    如果Auth Type为灰色不能点击,那么就不能用Password登录了,点击Create API Token,弹框后输入用户名密码登录,就会创建一个Token了
    如果Auth Type能点击可以选择Password登录
5、把项目托管到码云
    VCS-Import into Version Control-Share Project on Gitee
    然后操作就行了
    应该会出现这个错误:
    Can't finish GitHub sharing process
    Successfully created project 'Demo' on GitHub, but initial commit failed:...
    
    解决:
    找到git安装目录下的Git Bash运行后输入下面两行代码(邮箱、用户名改为自己的)即可:
    git config --global user.email "you@example.com"  
    git config --global user.name "Your Name"
    然后再次做提交操作就行了
6、打开码云上的项目,可能没有提交的代码,按照界面提示操作就行了

原文也是我的:https://blog.csdn.net/j11j11/article/details/84563045

相关文章:

  • 2021-09-05
  • 2021-06-07
  • 2021-12-29
  • 2021-07-14
  • 2021-06-30
  • 2021-09-12
  • 2021-12-19
猜你喜欢
  • 2021-10-07
  • 2021-08-17
  • 2021-12-12
  • 2021-12-06
  • 2021-05-10
  • 2021-06-13
  • 2021-07-12
  • 2021-06-07
相关资源
相似解决方案