Video: GitTree Undo, Redo and recovery snapshots
The video plays in YouTube’s player, in privacy-enhanced mode.
- 6 min video
- English narration · English and Arabic captions
- Watch on YouTube
Undo a commit from GitTree's toolbar, redo it, and learn what the app can and cannot take back, when it refuses, and why it keeps recovery snapshots.
Read the full lesson
The article has every step and command from the video, the practice exercise and the questions.
Video transcript
The narration of the video, cue by cue.
- GitTree can take some steps back. Here is how, and where it stops.
- GitTree keeps a journal of its own steps. Undo reverses the newest one.
- Before a risky step, it saves a recovery snapshot first.
- We have a branch, and a new note.
- Stage only that file.
- Write the summary. All the options stay off.
- Commit once, in GitTree itself.
- A commit made in a terminal is not in this record.
- Hover Undo. The tooltip names the step: commit.
- If it names something else, stop.
- Choose Undo once. The notice says undid commit.
- The branch is back on M.
- And the note is staged, not deleted. Nothing is lost.
- Now Redo names the same commit.
- Choose Redo once. The commit is back.
- The work tree is clean again.
- In a second copy, we commit and undo the same way.
- Now commit the staged note outside GitTree.
- Redo is disabled. The branch moved since.
- It leaves your commit alone. Never force it.
- Other reasons: files edited, a remote changed, the first commit.
- Now the snapshots. Run Delete Old Recovery Snapshots.
- It says that only the listed snapshots are deleted.
- Leave thirty days, and choose Find.
- Close it. Nothing expires on its own.
- In a plain Git copy, a soft reset gives the same shape.
- Forward again, the tree is clean, and there is no app snapshot.
- Git guards a ref the same way: move it only if it holds what you expect.
- Undo is not a global rewind. It reverses steps the app recorded.
- Practice: write the tooltip, the result of Undo, Redo, and the stale reason.
- Next, what a detached HEAD means.