忽略git上传的文件,修改添加.gitignore

发布时间 2023-06-13 10:19:50作者: 菜鸟不想飞

git

# 忽略编译输出文件夹
/target/
/build/
/out/
/bin/
/.settings/

# 忽略IDE和编辑器生成的文件和文件夹
.idea/
.eclipse/
.vscode/
*.iml

# 忽略依赖文件夹
/node_modules/
/bower_components/

# 忽略操作系统生成的文件
.DS_Store
Thumbs.db

# 忽略日志文件
*.log

# 忽略临时文件和备份文件
*.tmp
*.bak
*~

# 忽略敏感信息和配置文件
.env
*.env
*.env.*
.env.local
.env.development.local
.env.test.local
.env.production.local
.project
.classpath
.factorypath

# 忽略特定文件或文件类型
/file.txt
*.zip

# 忽略指定文件夹下的所有内容
/logs/
/docs/