Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Events
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
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 }}
Practice019
multi2api
Repository navigation
Code
Issues
Pull requests
Discussions
Actions
Projects
Security and quality
Insights
More
items
Files
Expand file tree
master
Breadcrumbs
multi2api
/
.gitattributes
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
28 lines (28 loc) · 1.71 KB
master
Breadcrumbs
multi2api
/
.gitattributes
Copy path
Top
File metadata and controls
Code
Blame
28 lines (28 loc) · 1.71 KB
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
16
17
18
19
20
21
22
23
24
25
26
27
28
# Git 属性 —— 只写**必须逐字节复现**的那几项,不动仓库其它文件的既有行为。
#
# ============================================================================
# 为什么需要这个文件:core.autocrlf=true 会让「内嵌资源」在不同平台内容不同
# ============================================================================
#
# release.yml 的注释写明了 CI 构建的目标之一是:
#
# 可复现 —— 任何人 fork 后打 tag 都能得到同构产物
#
# 但本机(Windows)的 core.autocrlf=true 会把签出时的 .md / .go 统一转成 CRLF。
# 对普通源码这没问题(Go 编译器不在乎),可是对被 `//go:embed` 内嵌的**数据**
# 就不同了 —— 内嵌是逐字节的:
#
# 本机 Windows 工作树 → defaultprompt.md 是 CRLF 版(2143 字节)
# Linux CI 干净签出 → 同一文件是 LF 版(2086 字节)
#
# 于是同一个 tag 在两处产出的二进制里,模型实际收到的系统提示词**不一样**。
# 这与「同构产物」的目标直接冲突,且不会有任何报错 —— 属于静默差异。
#
# 所以对它显式关掉换行转换(-text = 不做任何 text/eol 处理,原样进出)。
# 只在**这一条**路径上生效,其余文件继续沿用仓库既有约定(CRLF 工作树、LF blob)。
#
# ⚠ 新增内嵌资源(//go:embed 的 .md / .txt / .json 等)时,如果它属于
# 逐字节敏感的数据,就一并加到这里;同时在本地确认:
# git check-ignore -v <文件> # exit 0 = 会被 .gitignore 吃掉 = CI 构建必挂
# git cat-file -s :<文件> # 与工作树字节数比对,确认没有被换行转换改写
internal/prompt/defaultprompt.md -text
You can’t perform that action at this time.