3 ms·
> The idea behind the staging area is that you obviously need this all the time, because reasons, so let's force you to go through the hassle for every commit y
by minitech 7y ago
> The idea behind the staging area is that you obviously need this all the time, because reasons, so let's force you to go through the hassle for every commit you might want to make.
I do need it all the time, and simulating it with commits would be horribly unsuited to getting work done. (The funny thing is that what you mentioned – `git commit -a` – doesn’t accomplish that, but it does skip the hassle you just said was forced.) It’s also a clean place to handle conflict resolution state, because that shouldn’t go in commits.
- skrebbel 7y ago> (The funny thing is that what you mentioned – `git commit -a` – doesn’t accomplish that, but it does skip the hassle you just said was forced.) I wish it did, but it doesn't stage deletions, therefore also messing up renames, which is exactly never what you want.
- minitech 7y agoIt does commit deletions. It doesn’t commit untracked files. If you really want to track every new file unprompted, an alias can be made for `git add --all && git commit`.