Browse docs
Docs

Undo an operation

Restore an earlier repository state through Edit or Activity.

Markdown

Undo the latest operation

Move focus outside any text editor, then open the Edit menu. The Undo item includes the operation name, such as Undo Commit or Undo Rebase. Choose it to restore the recorded repository state.

While you edit a message or another text field, Command+Z undoes text edits. Click the history or file list before using it for a repository operation.

Undo Commit restores the commit message and leaves the commit's changes staged. You can edit them and commit again. Use Redo for the most recently undone operation when it remains available.

Use Activity

Press Command+0 to open Activity. Select an operation to inspect its output and available actions. Eligible records have Undo or Redo controls. Failed operations can have Retry; an uncertain push can have Check Remote State.

Repository names in Activity match the display names you set in the sidebar or Repository Settings. If no display name is set, GitLode uses the repository folder name. The full repository path is visible in the operation details.

If recovery stops on conflicts, resolve the files and choose Continue Recovery. Choose Abort Recovery to restore the state from before recovery began.

Check the limits

Undo history is stored locally for 30 days and survives app restarts. Availability depends on retained checkpoints and the current repository state. Staging, discard, and stash actions do not create checkpoint Undo entries.

Undo Push restores the recorded remote branch only if it still matches the expected state. It cannot reverse CI jobs, deployments, or changes in other clones. Read Undo and recovery before relying on it for shared history.