Git Rebase: Stop Being Scared of It
Everyone tells you to avoid git rebase. “It’s dangerous!” “You’ll lose commits!” “Just merge!” I used to think that too. Then I joined a team that rebases everything and our git history is actually readable. Here’s what changed my mind. The merge commit mess This was our git log before rebasing: * Merge branch 'feature/user-auth' |\ | * Fix typo in button text | * Update tests | * Merge main into feature/user-auth | |\ | |/ |/| * | Merge branch 'fix/header-spacing' |\ \ | * | Adjust header margin * | | Merge branch 'feature/notifications' |\| | | |/ |/| See those merge commits? They add zero value. Just noise. Finding where a feature was added means clicking through 5 merge commits. ...