AI 时代 LLM 经常需要读取 git diff,默认行为不要用 delta 修改。
Delta 安装时可能会自动添加配置:
[core]
pager = delta
需要先移除这个配置,然后在 .gitconfig 中添加:
[alias]
ds = -c pager.diff=delta diff
git diff保持原生格式,便于 LLM 读取git ds查看带 delta 的漂亮 diff 效果
1 note found.
AI 时代 LLM 经常需要读取 git diff,默认行为不要用 delta 修改。
Delta 安装时可能会自动添加配置:
[core]
pager = delta
需要先移除这个配置,然后在 .gitconfig 中添加:
[alias]
ds = -c pager.diff=delta diff
git diff 保持原生格式,便于 LLM 读取git ds 查看带 delta 的漂亮 diff 效果