Learn how to rewrite your commit history with interactive rebase in GitKraken.
Initiating Interactive Rebase
To initiate interactive rebase, drag and drop one branch onto another branch or right-click the target branch and select Interactive Rebase.
Right-click on any parent commit to see the interactive rebase option. However, please note that interactive rebase is not available for merge commits.
Interactive rebase limits
The drag and drop option will only show the interactive rebase option if:
- No merge commits are present on the branch you’re rebasing
- The 2 branches share a common ancestor
- Neither branch has the repo’s initial commit
- You are not attempting to rebase a parent branch onto a child (like master into a feature branch)
Note: If you start the interactive rebase with GitKraken you must finish the rebase with GitKraken.
Pick takes the commits from one branch and places them onto the last commit of another branch.
When selecting reword you will see the Reword commit message modal open. Here you can edit the summary and description of your commit.
When you squash you are taking the child commit and in turn writing that commit to the parent commit. In order for squash to be an option there will have to be a parent child relationship.
Drop removes the commit from the branch, completes rebase and rewrites the commit graph.
Keyboard Shortcuts and Reset
Use keyboard shortcuts Pick, Squash, Reword and Drop to perform commit actions. If you wish to start over, click .