Combine commits and ensure a cleaner merge history in your Git repository.
git merge --squash targetBranch