Files
hose-use/.gitattributes
gitea fbccc46b29 chore(infra): 引入跨平台开发规范、Git Hooks 门禁与 Windows 兼容性防护
- 新增版本控制的跨平台 Git Hooks (`.githooks/`):
  - `pre-commit`:拦截在主分支 (main/master) 直接提交;强制分支名全小写;拦截 >15MB 大文件;拦截 Windows 非法字符与系统保留设备名
  - `pre-push`:拦截直接向远程主分支推送代码,强制 GitHub PR 合并;拦截大写分支推送;兼容双远端镜像同步
  - `setup.sh` / `setup.ps1`:一键自动配置 core.hooksPath、core.autocrlf 与 core.symlinks
- 新增根目录 `.gitattributes`:固化 hooks 与 shell 脚本为 LF 换行符,规避 CRLF 异常
- 新增项目根目录 `.drafts/` 隐藏草稿目录并更新 `.gitignore`(忽略 .drafts/*,增加敏感私钥 *.pem, *.key 防护)
- 新增项目级 Agent Skill `.agents/skills/repo-gh/SKILL.md`:
  - 确立 Markdown 实体文件驱动铁律(--body-file / -F),杜绝命令行内联多行文本拼接
  - 统一 Issue、Commit、PR 的全流程简体中文规范
- 新增 `.agents/rules/windows-development.md`:《Windows 环境协作与开发守则》
- 新增 `.github/ISSUE_TEMPLATE/feature_request.yml` 与 `.github/pull_request_template.md` 模板
- 更新 `AGENTS.md` 与 `.agents/README.md`:对齐全小写分支与 Markdown-First 开发规范
2026-10-27 10:41:16 +08:00

7 lines
198 B
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 统一跨平台换行符规范
* text=auto
# Git Hooks 与 Shell 脚本必须强制使用 LF 换行符(防止 Windows 下报 '\r: command not found')
.githooks/* text eol=lf
*.sh text eol=lf