Home Index Back Next Re-write History - git rebase HEAD~<n> -i You already know how to update/modify previous commit. But what if you wanna update a commit which is n commits behind the head? Git Rewrite History