4 ms·
Thoughts on rebase?
by Forge36 4y ago
Thoughts on rebase?
- kramerger 4y agoMaybe, ... although these days rebase is mostly handled on the server. By the time your PR is reviewed its already behind main so server side needs to rebase it anyway before merge can be done. If you do rebase to squash commits, most projects prefer you didn't
- nicoburns 4y ago> If you do rebase to squash commits, most projects prefer you didn't I've been using rebase to fix bugs in earlier commits (on a feature brannch that hasn't yet been merged into main) so that you don't end up with broken commits in the history. I've also been using filter-branch to retroactively apply autoformatting to all commits in the branch.
- deleted 4y ago[deleted]
- xmcqdpt2 4y agoYou should rebase instead of merging when pulling though otherwise you contaminate your branch with merges that mess up the git log. Alternatively you can squash the merges before pushing but this still requires rebasing.