Generate required commits after git reset code example Example: git reset initial commit git update-ref -d HEAD