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:
75
.gitignore
vendored
Normal file
75
.gitignore
vendored
Normal 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/
|
||||
Reference in New Issue
Block a user