idea 集成 git, 提交代码到 git

前提
1、有git
2、码云账号

1、创建 git项目

idea 集成 git, 提交代码到 git

2、本地拉取

idea 集成 git, 提交代码到 git
一、从版本控制中新建项目

idea 集成 git, 提交代码到 git
二、输入相应的URL以及本地文件夹即可点击克隆。
idea 集成 git, 提交代码到 git
三、此时便可把代码放到我们这个文件夹之中了,
idea 集成 git, 提交代码到 git

3、提交代码

此时代码都是红色的,我们接下来需要把代码添加到 git中然后点击提交!
idea 集成 git, 提交代码到 git

1、add
idea 集成 git, 提交代码到 git
2、commit and push

一、提交我们的代码
idea 集成 git, 提交代码到 git

二、下一个界面
idea 集成 git, 提交代码到 git

3、提交完毕

idea 集成 git, 提交代码到 git

4、查看

此时码云上便有了代码!

idea 集成 git, 提交代码到 git