TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: How would you redesign git?

4 pointsby tashmahalicover 2 years ago
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 comments

JoeyBananasover 2 years ago
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>
felipecover 2 years ago
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)
marssaxmanover 2 years ago
That&#x27;s easy: I&#x27;d replace git with mercurial.
wmfover 2 years ago
Check out Gitless and Sapling.
more_cornover 2 years ago
Name things better