Undo and time machine
“Nothing gets lost” is a rule here: every action that changes branches or files has a plan, a safety point and an undo.
- Edition
- Free
- Undo
- ⌘/Ctrl+Z, redo ⌘/Ctrl+Shift+Z
- Snapshots
- every 5 minutes on changes, 14 days
- Backup
- refs/repotailor/backup/…
- Budget
- snapshot ≤ 200 ms
Undo and redo
Undo covers commit, checkout, merge, rebase, reset, pull, push, branch and tag changes, stash, discarding lines and conflict resolution.1 After an action the status bar shows “Undo” for six seconds. Undo is itself an action, an undo of it is the redo.
If the state has changed in the meantime (someone pushed, you committed in a terminal), undo refuses and names the reason instead of overwriting. Push can be taken back only while the remote still holds the pushed value; on main, master and release/* it needs git config repotailor.undoProtectedPush true, otherwise RepoTailor suggests a revert commit.

Backups before rewriting
Before every rewriting action a backup ref lies under refs/repotailor/backup/. It is an ordinary Git ref; git reflog and git branch show it. A force push is always --force-with-lease; protected branches are locked until you unlock them.

The time machine
Snapshots of your working copy lie as refs in the repository and never change the index or working files.2 Open it with the clock in the status bar or the palette (⌘/Ctrl+K, “Time machine”): a time axis shows marks for operations and snapshots, the preview shows branches, commits, files and diff of that moment. You can bring back one file or the whole state; that is itself an action with undo. Settings: on or off, interval, retention (14 days), largest file (10 MiB).
After an interruption
If the app or the machine stops in the middle of an action, the next start asks: go back to the state before or keep what was done. Both are safe.
Switching branches without a stash
On a switch, uncommitted changes are parked on the branch you leave and brought back when you return.3 Parked work is part of undo and the time machine.
Secret protection
A scan runs before every commit and push.4 A finding can be allowed with the marker repotailor-scan:allow. If a secret is already committed, the rescue helps (with a dry run and undo).