recovery checkpoints

Restore points before history gets dangerous.

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.

Git School · G12

Try it in your browser

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.

Commands to practise

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

With FluxGit

  • Stash from the sidebar; the stash shows in the graph where you made it.
  • Apply or pop it from there when you are back.
Download FluxGit Git School
FluxGit Safety Timeline with restore points and reflog movements on synthetic demo data
Real FluxGit interface · synthetic demo data

The problem: rebase and reset are easy to start, hard to take back.

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.

Current scope

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.

How FluxGit helps.

checkpoint

Automatic before covered ops

A restore point is created before covered dangerous operations so you have a way back.

undo/redo

Covered operations

Restore points cover reset, rebase, cherry-pick, revert and merge, with undo/redo across those history operations.

visible

Shown in the timeline

Restore points appear in the Safety Timeline alongside reflog movement and risk events.

Git School · 1:51

Switch Git branches with unfinished work: git stash, visually

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.

Switch Git branches with unfinished work: git stash, visually
English narration. Manual subtitles are available on YouTube in 11 languages. This transcript is in English.

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.

Read the narration transcript
  1. 00:03 You are in the middle of a change, and you need to look at another branch right now. It is not ready to commit, and you do not want to lose it.
  2. 00:12 Here is the half-done edit, in app.py.
  3. 00:19 A stash shelves tracked changes. Here, it saves the edit in app.py and removes that edit from the folder. Untracked files stay on disk. A successful pop restores the edit and removes its stash entry.
  4. 00:36 Stash current changes, and give it a name you will recognise later.
  5. 00:48 Switch to the other branch. The tracked edit is stashed. The untracked file stays in the folder.
  6. 00:58 Done there. Back to main.
  7. 01:05 Pop the stash. The edit is back in app.py, and the stash is gone.
  8. 01:15 Apply or pop? Apply restores your changes and keeps the stash entry. Pop removes the entry only if the changes apply successfully. If there are conflicts, the stash is kept.
  9. 01:29 In the terminal: git stash push with a message, switch away and back, then git stash pop.
  10. 01:37 Recap. Unfinished work goes on a shelf, not in a half-baked commit. Next lesson: clean up your commits before the pull request.

Privacy and security posture.

Restore points are local-first. They reference your own repository state and are never sent anywhere by FluxGit.

Related features.