Skip to content

Commit fa9ac05

Browse files
chore: update reset-demo branch cleanup
Document demo reset cleanup so the reset flow also closes out extra non-main branches used during demo prep. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 9acb8cd commit fa9ac05

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

.cursor/commands/reset-demo.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: Restore the eShop demo workspace to the demo-baseline git tag. Use
55

66
# reset-demo
77

8-
**Destructive:** restores the repository to the `demo-baseline` tag.
8+
**Destructive:** restores the repository to the `demo-baseline` tag and closes out extra non-`main` branches used during demo prep.
99

1010
**Git root:** repository root (`eshop/` — where `eShop.Web.slnf` lives)
1111

@@ -15,8 +15,12 @@ description: Restore the eShop demo workspace to the demo-baseline git tag. Use
1515
2. `git status` — warn about unpushed commits and uncommitted work.
1616
3. `git reset --hard demo-baseline`
1717
4. `git clean -fd` — do **not** delete local secrets (`.env`, `.env.local`, user-specific Aspire settings) if present.
18-
5. `dotnet restore eShop.Web.slnf && dotnet build eShop.Web.slnf`
19-
6. Tell the user to run AppHost if needed: `dotnet run --project src/eShop.AppHost/eShop.AppHost.csproj` (Docker required).
18+
5. Close out non-`main` branches that are not needed for the demo script:
19+
- delete local branches other than `main`
20+
- delete matching `origin/*` branches in this fork when they are no longer needed for the demo reset
21+
- never touch `upstream/*`
22+
6. `dotnet restore eShop.Web.slnf && dotnet build eShop.Web.slnf`
23+
7. Tell the user to run AppHost if needed: `dotnet run --project src/eShop.AppHost/eShop.AppHost.csproj` (Docker required).
2024

2125
## If tag missing
2226

0 commit comments

Comments
 (0)