Before a coding agent discards or rewrites anything, Git Octa saves a recovery point: every file as it was, untracked ones included, the commit the branch was on, and anything the action removes, such as a deleted branch, tag or stash, or the commits a force push replaces. Agents can also keep a recovery point of their own before risky work, without changing anything. Points stay until you delete them, listed under Recovery Points in the left panel. Select one to see which files have changed or are gone since. Files created since aren't listed.
- Restore on a file, or on several selected files, puts those files back as they were. Your branch, staged changes and other files stay as they are.
- Restore All Files does the same for every file in the point. Files created since stay.
- Put <branch> Back moves the branch back to the commit it was on and makes every file match the point: changed files go back, deleted ones return, and files from commits made since leave the working copy. Everything comes back unstaged. Untracked files you created since stay. It only shows on the branch the point was saved on, and not during a rebase.
- Create Branch starts a branch at a commit the point keeps: where your branch was, or one the action removed, such as a deleted branch's tip.
- Delete removes the point for good.
- Clean Up…, also in the right-click menu of Recovery Points and in the command palette, says how many points the repository has and how much space only they keep, then deletes the ones older than 30 days or all of them.
Recovery points are the only copy of what an agent discarded or rewrote, and they keep every file they saved, even one deleted on purpose, such as a password, in the repository's .git folder. Deleting them can't be undone; git frees the space the next time it cleans up the repository.
Restore, Restore All Files and Put <branch> Back first save your current files as a new recovery point, so you can go back from the same list.