# IDEA项目文件
.idea/
*.iml
*.iws
.idea_modules/
# 编译输出目录
/target/
# 日志文件
logs/
*.log
# 环境配置文件
*.properties
*.yml
*.yaml
!application.yml
!application.properties
!src/main/resources/application.yml
!src/main/resources/application.properties
# 缓存文件
.cache
.cache/
.cache/*
# 临时文件
*.orig
*.bak
*.swp
*.tmp
# 数据库文件
data/
h2/
# 打包文件
*.jar
*.war
# 本地配置
local/
如果已被跟踪处理方式
git rm -r --cached . # 清除已跟踪的文件
git add .