gitignore文件添加

1. 删除缓存

1
git rm -r --cached .idea/

2. gitignore 文件示例

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# 编译产生的文件
/target/
/bin/

# IntelliJ IDEA IDE 配置文件(如果使用)
/.idea/
/*.iml

# Eclipse IDE 配译文件(如果使用)
/.settings/
/.classpath
/.project

# NetBeans IDE 配置文件(如果使用)
/nbproject/private/
/nbbuild/
/dist/
/build/

# Maven 配置文件
/target/

# Gradle 构建工具配置文件
.gradle/
build/

# macOS 系统文件
.DS_Store

# Windows 系统文件
Thumbs.db

# Linux 下的临时文件
*~

# 日志文件
*.log

gitignore文件添加
http://example.com/gitignore文件添加/
作者
Panyurou
发布于
2025年7月13日
许可协议