Rebase
Browse all articles, tutorials, and guides about Rebase
Posts
How to Change Author and Committer for Multiple Commits in Git
Need to fix incorrect author information across many commits? Learn how to batch update author and committer names and emails in Git history.
How to Change the Commit Author for a Single Commit in Git
Made a commit with the wrong author information? Learn how to change the author name and email for a single commit in your Git history.
Delete a Commit from a Git Branch: Reset, Rebase or Revert
Remove the last commit with git reset --hard HEAD~1, drop an older one with git rebase -i, or undo a pushed commit safely with git revert <commit-hash>.
How to Modify a Specific Commit in Git
Need to change an old commit? Learn how to modify a specific commit in Git history using interactive rebase and amend commands.
How do I Squash My Last N Commits Together?
Squashing commits helps you clean up your Git history by combining multiple related commits into one. Learn how to use interactive rebase to squash commits while keeping your history organized and meaningful.
How to Undo a Git Rebase with ORIG_HEAD or reflog
Just rebased? Check git log -1 ORIG_HEAD, then run git reset --hard ORIG_HEAD. Otherwise find the old commit in git reflog. Mid-rebase: git rebase --abort.