4 ms·
Regarding your example - why would you commit any of the 5 little commits, If they didn't complete the task, and also are breaking the product? wouldn't it be b
by itaysk 11y ago
Regarding your example - why would you commit any of the 5 little commits, If they didn't complete the task, and also are breaking the product? wouldn't it be better to commit only when you completed the task you were working on? (I mean, if the task is made out of sub-tasks, then I would also commit each subtask or milestone that I feel is important, but this is not the case here)
- Piskvorrr 11y agoSometimes, having a snapshot is useful even if it's not a snapshot of a completely functional system. "Hmm, this doesn't seem to be a workable approach here; let's commit, checkout an earlier version and branch off that." It's not necessary to push all these experiments (or even keep them in the end), but it might be useful to have them, at least for the moment.
- ghostwriter 11y agoThat's what "git stash" is for.
- Piskvorrr 11y agoStash is supported as a first-class citizen by exactly zero tools that I've seen - even though a stash is a commit in all but name ;)
- deleted 11y ago[deleted]