停止压缩你的提交。你也在压缩你的人工智能。

2作者: jannesblobel大约 6 小时前原帖
大家总是说“保持你的 Git 历史干净”。压缩、重基、线性化。在 Git 日志中看起来很整洁。 但问题是:到 2025 年,我们最大的合作伙伴不仅仅是人类,还有 AI 工具。而这些工具需要那些杂乱的历史:失败的尝试、拼写错误、糟糕的重构。这些都是它们学习的上下文。 当我们将所有内容压缩成完美的历史时,我们实际上是在删除那些可以帮助代理解释错误、追踪回归或警告我们即将重蹈覆辙的线索。 “干净的历史”让审阅者今天感到满意,但这却是明天 AI 辅助开发的技术债务。
查看原文
Everyone keeps saying “keep your Git history clean.” Squash, rebase, linearize. It looks neat in the git log.<p>But here’s the thing: in 2025 our biggest collaborators aren’t just humans, they’re AI tools. And those tools need the messy history: the failed attempts, the typos, the bad refactors. That’s the context they learn from.<p>When we squash everything into a perfect history, we’re deleting the very breadcrumbs that could help an agent explain a bug, trace a regression, or warn us we’re about to repeat an old mistake.<p>“Clean history” makes reviewers happy today. But it’s technical debt for tomorrow’s AI-assisted development