Add .gitignore to exclude unnecessary files

The .gitignore file excludes IDE-specific, system-generated, temporary, and backup files, as well as common unwanted formats. It ensures cleaner version control by including only relevant project files while ignoring clutter.
This commit is contained in:
2025-02-14 11:14:32 +01:00
parent 80e7a39e8a
commit e1a80f18a0

75
.gitignore vendored Normal file
View File

@@ -0,0 +1,75 @@
# Ignore IntelliJ IDEA project-specific files
.idea/
*.iml
*.iws
# Ignore OS generated files
.DS_Store
.DS_Store?
Thumbs.db
ehthumbs.db
Desktop.ini
# Ignore temporary files
*.tmp
*.swp
*.swo
*.bak
*.orig
# Ignore hidden system files
.*.s[a-v][a-z]
.*un~
$RECYCLE.BIN/
# Ignore logs and runtime files
*.log
*.pid
*.seed
*.gz
# Ignore clutter generated by markdown previews/editors
*.markdown-tmp
.markdown-cache/
# Ignore common backup files
*.~*
*.save
*~
# Ignore unnecessary files for compressed formats (if extracting archives is needed)
*.zip
*.tar
*.tar.gz
*.rar
# Ignore image editor temp files (if images are modified)
*.xcf~
*.psd~
# Ignore binary thumbnails or preview files (if editors generate them)
*.thumbs
# Ignore files specific to versioning history outside Git
*.orig
# Include images, documents, and markdown explicitly (so they're not accidentally excluded)
!*.md
!*.markdown
!*.png
!*.jpg
!*.jpeg
!*.gif
!*.pdf
!*.doc
!*.docx
!*.ppt
!*.pptx
!*.xls
!*.xlsx
!*.odt
# Ensure backup or runtime-related folders are ignored (user-configurable)
backup/
temp/
generated/