Re:Squash your commits
by itaysk on Saturday April 02, 2016 @03:42AM
(#11410654)
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)
[ Parent
| on HN ]
Sometimes, 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.
Re:Squash your commits
by ghostwriter on Saturday April 02, 2016 @04:15AM
(#11410717)
That's what "git stash" is for.