Automatic before covered ops
A restore point is created before covered dangerous operations so you have a way back.
Flux restore points create recovery-oriented checkpoints around risky history operations so rebase, reset, cherry-pick and merge feel less like a leap of faith.
You are halfway through a change on main and need to fix something on the hotfix branch now.
Goal: Put your work aside, make the fix on hotfix, come back and get your work back.
Practice uses a simulated repository in your browser memory. It does not access your files or connect to a real remote repository.
This simulator supports a subset of Git commands. Unsupported commands explain their limits in the terminal.
git stash
git switch hotfix
echo "<h1>Shop!</h1>" > index.html
git commit -am "Fix the title"
git switch main
git stash pop
Dangerous history operations can move HEAD, rewrite commits or discard work in a way that is intimidating to reverse. Without a checkpoint, recovery means digging through reflog by hand under pressure.
Flux restore points cover dangerous history operations like reset, rebase, cherry-pick, revert and merge. They are not a universal undo: discard and clean do not create a Flux restore point today, so treat those as destructive unless you stash or commit first.
A restore point is created before covered dangerous operations so you have a way back.
Restore points cover reset, rebase, cherry-pick, revert and merge, with undo/redo across those history operations.
Restore points appear in the Safety Timeline alongside reflog movement and risk events.
This related workflow demonstrates a manual stash before switching branches, then returning to restore a tracked edit. It is separate from automatic restore points around covered history operations.
Watch on YouTube — opens a new tab
Recorded in a test repository. The demonstrated stash shelves a tracked edit; untracked files stay in the folder. Apply keeps the stash entry. Pop removes it only after a successful application; conflicts retain the entry.
Restore points are local-first. They reference your own repository state and are never sent anywhere by FluxGit.