logoalt Hacker News

funimpodedtoday at 1:29 AM1 replyview on HN

You can add everything and commit all at once in git, so you’re technically using staging but it doesn’t feel like it.

I stopped using it the first time I committed something I didn’t want to, over a decade ago, haven’t used it again since so I forget the exact invocation, but I think it was just “-a” or something.

Before it bit me though yeah, that did seem like a default I’d have preferred. Not any more.


Replies

imrontoday at 3:58 AM

> Not any more.

`git add -p` FTW