Last updated: March 2026
Have you ever made a Git change and immediately wished you could take it back? Whether it’s an accidental commit, a discarded change, or a deleted branch, GitKraken Desktop lets you undo many actions quickly and safely.
You can undo many common actions with a single click of the Undo button. If you undo something by mistake, you can also redo it just as easily.
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).
These undo actions can help you recover from common missteps without going to the command line.
How redo works
If you undo something accidentally, use the Redo function 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 |
Use these shortcuts to move faster and stay in your flow while working in GitKraken Desktop.