最近自己建了一个coding的账号来托管代码,记录一下过程,仅供参考。

首先创建一个项目,勾选README。

IDEA利用coding托管项目代码

下载git,解压安装。

安装完git之后,在你想要的地方新建一个文件夹作为git的本地仓库。把你自己搭建好的框架或者项目复制文件夹里。右键文件夹,选择git bush here打开git客户端控制面板。

输入用户名和注册邮箱

$git config user.name//获取用户名

$git config user.email//获取邮箱

$git config --global user.name "XXX"

$git config --global user.email "[email protected]"

初始化

$git init

连接coding

$git remote add origin [email protected]:xppkvj/document.git(coding上的项目地址)

用IDEA打开复制到本地仓库中的项目,重新加载依赖。

IDEA利用coding托管项目代码

测试一下git。

IDEA利用coding托管项目代码

添加本地项目

右击项目,选择git,选择add。代码文件变绿色了,这样就可以提交代码了。

IDEA利用coding托管项目代码

然后commit项目代码。

IDEA利用coding托管项目代码

最后上coding看一下上传结果。嘻嘻,成功了。

IDEA利用coding托管项目代码

相关文章:

  • 2021-11-11
  • 2021-10-11
  • 2022-12-23
  • 2021-09-22
  • 2021-06-22
  • 2021-07-14
  • 2021-12-03
  • 2021-07-23
猜你喜欢
  • 2022-12-23
  • 2021-12-08
  • 2021-12-28
  • 2021-07-31
  • 2021-07-07
  • 2021-07-06
  • 2021-09-24
相关资源
相似解决方案