Blog Logo
TAGS

Smoother Rebases with Auto-squashing Git Commits

At work, a colleague introduced the author to Gits --autosquash option. In this post, the author explores what it does, why its useful, and how to use it by default. The author also discusses interactive rebasing in general and how it helps tidy up the Git history. The narrative created by tidying up the commits makes it easier to review the changes. The article covers the process, and commands such as pick, reword, squash, and fixup that come with git rebase command to initiate an interactive rebase. The author provides a step-wise approach to enable --autosquash by default in Git, which results in smoother Git rebasing process.