Last updated: November 2026
Use this page to undo or redo Git actions in GitKraken Desktop, such as an accidental commit, a discarded change, or a deleted branch.
To undo a supported action, click the Undo button. If you undo something by mistake, you can redo it.
Requirements and limits
- Undo scope: The most recent supported action only
- Redo scope: Only actions that were just undone
- Supported actions include checkout, commit, discard, delete branch, remove remote, reset branch, and several rebase-related operations
- Access methods: Toolbar buttons or keyboard shortcuts
- Availability depends on whether the last action is one GitKraken Desktop can safely track and reverse
Quick Start
To undo an action: Click the Undo button in the toolbar, or press Cmd + Z (Mac) or Ctrl + Z (Windows/Linux).
To redo an undone action: Press Cmd + Y or Cmd + Shift + Z (Mac), or Ctrl + Y or Ctrl + Shift + Z (Windows/Linux).
Supported undo actions include: Checkout, Commit, Discard, Delete branch, Remove remote, Reset branch to a commit, and rebase operations including Interactive Rebase, Multi-Commit Cherry Pick, dropping and rewording commits, and AI Commit Compose.
Undo is available for the most recent supported action. Redo is available for any action that was just undone.

Supported undo actions
You can undo the following actions in GitKraken Desktop:
- Checkout
- Commit
- Discard
- Delete branch
- Remove remote
- Reset branch to a commit
- Rebase operations, including Interactive Rebase, Multi-Commit Cherry Pick, dropping and rewording commits, and AI Commit Compose (Recompose with AI)
If you have uncommitted changes when you undo or redo a reset (such as dropping the latest commit) or a rebase, GitKraken Desktop asks you to stash them first. Click Yes, Stash Changes to stash your changes and continue, or Cancel to leave everything as it is.
Undo lets you recover from common mistakes without using the command line. To reverse changes a coding agent made, see Review and Undo AI Coding Agent Changes.
How redo works
If you undo something accidentally, use Redo to restore it. Redo is available for any action you’ve just undone.
Keyboard shortcuts
| Action | Mac | Windows/Linux |
|---|---|---|
| Undo | ⌘Z | CtrlZ |
| Redo | ⌘Y ⌘ShiftZ |
CtrlY CtrlShiftZ |