2、Idea使用git

1、添加git

image-20210720120730115

2、初始化工作区

image-20210720120817459

image-20210720120851555

3、添加工作区内容到暂存区

右键项目...

image-20210720121120670

4、提交项目到本地仓库

右键项目...

image-20210720121226543

5、提交到远程仓库(gitee)

image-20210720121852798

image-20210720121920635

image-20210720122022234

需要跳过的文件

# kdiff3 ignore

*.orig



# maven ignore
.mvn/
target/



# eclipse ignore

.settings/

.project

.classpath



# idea ignore

.idea/

*.ipr

*.iml

*.iws



# temp ignore

*.log

*.cache

*.diff

*.patch

*.tmp



# system ignore

.DS_Store

Thumbs.db



# package ignore (optional)

*.jar

*.war

*.zip

*.tar

*.tar.gz