windows-git
仓库创建 2026年7月28日最近提交 1 天前SkillHot 收录 1 天前
▸ 精选理由
覆盖 Windows 特有坑点,适合在 Windows CI 或桌面环境下的自动化操作。
这个 Skill 做什么
指导代理在 Windows 环境下正确使用 Git,处理 CRLF、路径与凭据问题。
给在 Windows 下写代码的代理一套靠谱的 Git 操作建议,处理 CRLF/LF、core.autocrlf、文件权限、大小写重命名、长路径、凭据助手、路径引用、Git Bash 与 PowerShell 的差别,以及修复 Windows 特有的 git 错误。用在 Windows 环境遇到 git 问题或要让自动化 agent 稳定运行时。偏好 --no-pager 等安全命令,能帮你避开常见平台陷阱。
▸ 展开 SKILL.md 英文原文
Use Git correctly on Windows with coding agents. Use for line endings (CRLF/LF), core.autocrlf, file mode, case-only renames, long paths, credential helpers, path quoting, Git Bash vs PowerShell, and fixing Windows-specific git failures.
1
Stars
0
Forks
7
仓库内 Skill
+0
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/javeckbila/windows-agent-skills/master/skills/windows-git/SKILL.md或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/javeckbila/windows-agent-skills/master/skills/windows-git/SKILL.md"SKILL.MD 节选查看完整文件 ↗
# Git on Windows for coding agents ## Default safe commands (PowerShell) ```powershell git --no-pager status git --no-pager diff git --no-pager log -5 --oneline ``` Always prefer `--no-pager` in agent sessions so git does not open `less`. ## Line endings (most common footgun) | Setting | Effect | |---------|--------| | `core.autocrlf=true` | Classic Windows default — converts LF→CRLF on checkout | | `core.autocrlf=input` | Convert CRLF→LF on commit only | | `core.autocrlf=false` | No conversion — rely on `.gitattributes` | **Prefer `.gitattributes` in the repo** over fighting global config: ```gitattributes * text=auto eol=lf *.ps1 text eol=crlf *.bat text eol=crlf *.cmd text eol=crlf
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有