git rebase -i HEAD~5 # As the commit on line 1 is HEAD, in most cases you would leave this as # pick. You cannot use squash or fixup as there is no other commit to # squash the commit into.