Re:Comparing Git Workflows
by mikegerwitz on Friday May 27, 2016 @09:04AM
(#11785697)
My argument was for not retaining those commits, or not committing them in the first place; drewg123 was complaining about the situation from others, meaning that their private branches were not cleaned up prior to pushing. You wouldn't push your WIP branch, I would assume.
I have also pushed for the purpose of pulling on another PC; that commit then gets `reset --soft`'d.
Also, if I am working on something very complex, I might go hours or even days with code that can't compile. I don't want to risk losing that because I was avoiding committing.
A lot of these problems can be resolved with the proper use of --fixup and --squash and auto squash rebasing.