HACKER Q&A
📣 tashmahalic

How would you redesign git?


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?


  👤 JoeyBananas Accepted Answer ✓
I would change the term "The index" to "The staging area."

https://felipec.wordpress.com/2021/08/10/git-staging-area-re...


👤 felipec
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 "the index").

git stage add (git add), git stage delete (git rm --cached), git stage diff (git diff --cached), git stage edit (not possible today)


👤 marssaxman
That's easy: I'd replace git with mercurial.

👤 wmf
Check out Gitless and Sapling.

👤 more_corn
Name things better