Recovering a board its repository lost
A local board lives on a hidden ref inside the repository, and those refs are never pushed. So a repository that is deleted and cloned again comes back without a single board, and looks exactly like one that never had any — nothing else in the app would ever mention them again.
That is what the disaster-recovery mirror is for: every write also lands in a bare git repository of the board's own under ~/.git-manager/boards/, outside the repository entirely. The board view reads it on open and offers back whatever the mirror still holds and the repository no longer does.
A board the repository lost is offered back from the mirror
Opening the board on a repository with no board of its own — because it was deleted and cloned again, or the ref was never fetched in the first place — checks the mirror before giving up. If it still holds any, a recovery banner offers them back by name, with how many cards each has and when it last changed; restoring one writes it straight back into the repository's own history, and the offer is gone once there is nothing left the repository doesn't already have.

Captured from the running app by this scenario.
Do this
- Open the board
- Create a board named
Sprint 1with the card prefixGM - Add a card titled
Rework the exporterto theTo docolumn - Create a standing board named
Backlogwith the card prefixBL - Open the board
- Restore the board
Sprint 1 - Restore the board
Backlog
You should see
- The board
Sprint 1is mirrored outside the repository - The board
Backlogis mirrored outside the repository - The repository stores 0 boards in its own git history
- The board
Sprint 1is offered for recovery - The board
Backlogis offered for recovery - The recovery offer for
Sprint 1says it holds 1 card - The recovery offer for
Backlogsays it holds 0 cards - The board
Sprint 1is shown - The card
Rework the exporteris shown on the board - The board
Backlogis offered for recovery - The board
Backlogis shown - The repository stores 2 boards in its own git history
- The board history records
git-manager: restore board from backup - No board is offered for recovery any more
- No error notification is displayed
This page is generated from apps/e2e/features/board-recovery.feature, the end-to-end test that drives the feature it describes.