-
Notifications
You must be signed in to change notification settings - Fork 5.5k
config: add .gitattributes for cross-platform line ending consistency #951
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Hundao
merged 2 commits into
aden-hive:main
from
Emart29:config/add-gitattributes-for-windows
Jan 28, 2026
+124
−0
Merged
Changes from 1 commit
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,124 @@ | ||
| # Normalize line endings for all text files | ||
| * text=auto | ||
|
|
||
| # Source code | ||
| *.py text diff=python | ||
| *.js text | ||
| *.ts text | ||
| *.jsx text | ||
| *.tsx text | ||
| *.json text | ||
| *.yaml text | ||
| *.yml text | ||
| *.toml text | ||
| *.ini text | ||
| *.cfg text | ||
|
|
||
| # Shell scripts (must use LF) | ||
| *.sh text eol=lf | ||
| quickstart.sh text eol=lf | ||
|
|
||
| # PowerShell scripts (Windows-friendly) | ||
| *.ps1 text eol=lf | ||
| *.psm1 text eol=lf | ||
|
|
||
| # Windows batch files (must use CRLF) | ||
| *.bat text eol=crlf | ||
| *.cmd text eol=crlf | ||
|
|
||
| # Documentation | ||
| *.md text | ||
| *.txt text | ||
| *.rst text | ||
| *.tex text | ||
|
|
||
| # Configuration files | ||
| .gitignore text | ||
| .gitattributes text | ||
| .editorconfig text | ||
| Dockerfile text | ||
| docker-compose.yml text | ||
| requirements*.txt text | ||
| pyproject.toml text | ||
| setup.py text | ||
| setup.cfg text | ||
| MANIFEST.in text | ||
| LICENSE text | ||
| README* text | ||
| CHANGELOG* text | ||
| CONTRIBUTING* text | ||
| CODE_OF_CONDUCT* text | ||
|
|
||
| # Web files | ||
| *.html text | ||
| *.css text | ||
| *.scss text | ||
| *.sass text | ||
|
|
||
| # Data files | ||
| *.xml text | ||
| *.csv text | ||
| *.sql text | ||
|
|
||
| # Graphics (binary) | ||
| *.png binary | ||
| *.jpg binary | ||
| *.jpeg binary | ||
| *.gif binary | ||
| *.ico binary | ||
| *.svg binary | ||
| *.eps binary | ||
| *.bmp binary | ||
| *.tif binary | ||
| *.tiff binary | ||
|
|
||
| # Archives (binary) | ||
| *.zip binary | ||
| *.tar binary | ||
| *.gz binary | ||
| *.bz2 binary | ||
| *.7z binary | ||
| *.rar binary | ||
|
|
||
| # Python compiled (binary) | ||
| *.pyc binary | ||
| *.pyo binary | ||
| *.pyd binary | ||
| *.whl binary | ||
| *.egg binary | ||
|
|
||
| # System libraries (binary) | ||
| *.so binary | ||
| *.dll binary | ||
| *.dylib binary | ||
| *.lib binary | ||
| *.a binary | ||
|
|
||
| # Documents (binary) | ||
| *.pdf binary | ||
| *.doc binary | ||
| *.docx binary | ||
| *.ppt binary | ||
| *.pptx binary | ||
| *.xls binary | ||
| *.xlsx binary | ||
|
|
||
| # Fonts (binary) | ||
| *.ttf binary | ||
| *.otf binary | ||
| *.woff binary | ||
| *.woff2 binary | ||
| *.eot binary | ||
|
|
||
| # Audio/Video (binary) | ||
| *.mp3 binary | ||
| *.mp4 binary | ||
| *.wav binary | ||
| *.avi binary | ||
| *.mov binary | ||
| *.flv binary | ||
|
|
||
| # Database files (binary) | ||
| *.db binary | ||
| *.sqlite binary | ||
| *.sqlite3 binary | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing trailing newline at end of file.