Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
Accelerator
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Type
/
to search
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
JavaLyHn
/
wraith
Public
Notifications
You must be signed in to change notification settings
Fork
1
Star
7
Code
Issues
24
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Files
Expand file tree
main
Breadcrumbs
wraith
/
.gitattributes
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
15 lines (15 loc) · 814 Bytes
main
Breadcrumbs
wraith
/
.gitattributes
Copy path
Top
File metadata and controls
Code
Blame
15 lines (15 loc) · 814 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# Windows 脚本的字节必须原样进出仓库 —— 不许 git 做行尾转换。
#
# `-text` 而不是 `eol=crlf`:后者只在检出时转,工作区在 mac 上仍是 LF,
# 于是「磁盘上是不是 CRLF」在两个平台上给出不同答案,测试就没法断言字节。
# `-text` 让文件按仓库里存的样子进出,两边一致。
#
# 为什么 .cmd 非要 CRLF:cmd.exe 按 OEM 码页逐字节解析批处理,行尾少了 CR 这个
# 「牺牲字节」时,孤立的 GBK lead byte 会直接吞掉 LF,把两行并成一条命令。
# 为什么 .ps1 也在这里:它们靠 UTF-8 BOM 才不会被 PowerShell 5.1 按 GBK 读,
# 别让任何自动改写碰它们的头三个字节。
#
# 两条约束分别由 WindowsLauncherScriptTest 与 PowerShellBomTest 钉住。
*.cmd -text
*.bat -text
*.ps1 -text
You can’t perform that action at this time.