Clean-up history in Git: use interactive rebase and reset

Опубликовано: 04 Июнь 2026
на канале: Luc Hamers
44
2

In this video I will show how to clean-up the Git history of a feature branch, both with interactive rebasing as well as by using reset.

I will explain, how rebase and interactive rebase works, what they do and when to use them, both on the command line as well as with the IntelliJ IDE. And I will show an alternative to clean-up the history using git reset.

To code along, you can clone my demo repository. For this, use the following command line command:

git clone https://gitlab.com/LucHamers/git-rebase.git