Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It may not be the most mnemonic but it clearly says right in the CLI what you're supposed to do

   (use "git restore --staged <file>..." to unstage)


It looks like I get that message when I do a git status, not the git add.

Also, it looks like "restore" was not added until august 2019. And I have not used it, but will in the future!

But this does not exactly help the conceptual issues, because now we have `git revert`, `git reset`, and `git restore`.

From an english concept perspective those words are all very similar in meaning.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: