4 ms·
Why the while "first stage, then commit" workflow though? Wouldn't it be simpler to just commit?
by framecowbird 5y ago
Why the while "first stage, then commit" workflow though? Wouldn't it be simpler to just commit?
- andreareina 5y agoOne of the ways I use the staging area is as an ephemeral wip commit: I've got a change that runs and gets me incrementally closer to the desired result, but isn't yet an atomic commit. Changes to that state can be built upon, undone etc until I've got something I'm happy to commit.
- abstract_put 5y agoI often have local changes that I do not want represented in my commit (e.g. that code isn't done yet), so what would I do with those changes? One solution might be to stash them, select files while doing a commit, or otherwise put them aside, but that feels like reinventing the stage-then-commit workflow. That said, adding an alias for adding everything and committing it in one shot seems like a worthwhile quality of life change.
- emodendroket 5y agoI find it's common that I want to change stuff in my local dev environment with changes I don't actually wish to commit -- let's say hardcoding to some folder on my local machine in a configuration file, or something like that.