IDEA中集成Git

一、新建项目,绑定GIT

1、新建spring boot项目

 

2、路径选择git本地文件地址

   

 

3、新的项目文件绑定git,将远程的git文件拷贝至项目中

 

 二、修改文件,使用IDEA操作GIT

1、提交,右上角工具栏

 

2、选择需要提交的信息,写注释,并commit

 

3、同步到远程仓库:

 

三、命令行提交

D:\git\gitee\gitstudy02>git add .

D:\git\gitee\gitstudy02>git commit -m "new file test01.txt"
[master 2813520] new file test01.txt
 1 file changed, 3 insertions(+)
 create mode 100644 test01.txt

D:\git\gitee\gitstudy02>git push
Enumerating objects: 4, done.
Counting objects: 100% (4/4), done.
Delta compression using up to 8 threads
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 290 bytes | 290.00 KiB/s, done.
Total 3 (delta 1), reused 0 (delta 0), pack-reused 0
remote: Powered by GITEE.COM [GNK-5.0]
To gitee.com:mrwhite2021/gitstudy.git
   abca820..2813520  master -> master

 

posted @ 2021-05-04 07:26  Mrwhite86  阅读(580)  评论(0编辑  收藏  举报