7 ms·
Yes, I agree. Rebase has the ability to obfuscate and rewrite commits if you so choose. Rebasing to just re-order commits is totally viable and perhaps encourag
by nacho_weekend 7y ago
Yes, I agree. Rebase has the ability to obfuscate and rewrite commits if you so choose. Rebasing to just re-order commits is totally viable and perhaps encouraged. We did this at a previous company and it made the commit history very clean to read. However, with great power comes great responsibility in a rebase, and a junior dev can easily mess things up if you don’t educate them properly.
- anamexis 7y agoOP's point was that rebasing cannot rewrite commits. It can only make new commits and change branch pointers to them.
- gwright 7y agoNope. It doesn't 'rewrite' commits. You are using the language I was calling out as confusing. It creates new commits and moves the branch to the tip of the new sequence of commits. No existing commits are changed or deleted.