TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: How would you redesign git?

4 点作者 tashmahalic超过 2 年前
Git is popular. We have years of usage behind us now. With the benefit of hindsight, if you could redesign it now from scratch, with nary a concern for backwards compatibility, how would you improve its interface or architecture?

5 条评论

JoeyBananas超过 2 年前
I would change the term &quot;The index&quot; to &quot;The staging area.&quot;<p><a href="https:&#x2F;&#x2F;felipec.wordpress.com&#x2F;2021&#x2F;08&#x2F;10&#x2F;git-staging-area-rename&#x2F;" rel="nofollow">https:&#x2F;&#x2F;felipec.wordpress.com&#x2F;2021&#x2F;08&#x2F;10&#x2F;git-staging-area-re...</a>
felipec超过 2 年前
So many things, but if I were to pick one, I would add a `git stage` command to work with the staging area (wrongly called &quot;the index&quot;).<p>git stage add (git add), git stage delete (git rm --cached), git stage diff (git diff --cached), git stage edit (not possible today)
marssaxman超过 2 年前
That&#x27;s easy: I&#x27;d replace git with mercurial.
wmf超过 2 年前
Check out Gitless and Sapling.
more_corn超过 2 年前
Name things better