# Git safety and recovery

Inspect reflog, status, branches, and uncommitted work before recovery; prefer a backup branch or stash over destructive reset.

![Git safety and recovery in Foxora Desktop v5.0.3](/docs/images/v5.0.3/desktop/stage-source-control.webp)

## Where this lives

Open a Git-backed project, then choose **Stage → Source control**.

Source control shows repository status, diffs, staging, commits, branches, worktrees, and conflict state associated with the active project and task.

> **Safety:** Never discard, reset, force-push, or overwrite changes merely to obtain a clean status. Preserve work before recovery operations.

## Steps

1. Open a Git-backed project, then choose **Stage → Source control**.
2. Inspect reflog, status, branches, and uncommitted work before recovery; prefer a backup branch or stash over destructive reset.
3. **Confirm the result.** Run tests, inspect `git status`, and review the final commit diff or pull request.

## Choose the right path

- Use a branch for isolated work.
- Use a worktree when parallel tasks need separate working directories.
- Create a checkpoint before risky conflict resolution.


## Confirm it worked

- Run tests, inspect `git status`, and review the final commit diff or pull request.
- The screen, command, file, run, or destination named in this guide reflects the expected state.
