← Back Home

Modify Git Commit Using Git Rebase

  1. til

To edit commit message, reorder commit, delete commit or squash commit, we can use git rebase -i or git rebase --interactive then change first word to any command that provided by git.

use --root to include root commit

List commands:

Reference: man git rebase

comments powered by Disqus