3.3 Workspace Discard — Git skill for Claude Code
Forkast workspace uten merge — sletter worktree og branch.
How to install 3.3 Workspace Discard
Installs to ~/.claude/commands/sultanavtajev-claude-next.js-template-3.3-workspace-discard.md
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/sultanavtajev/claude-next.js-template/HEAD/.claude/commands/3.3-workspace-discard.md -o ~/.claude/commands/sultanavtajev-claude-next.js-template-3.3-workspace-discard.md Restart Claude Code, or start a new session, for it to be picked up.
What 3.3 Workspace Discard does
description: Forkast workspace uten merge — sletter worktree og branch. argument-hint:
Forkast workspace "$ARGUMENTS" uten å merge. Gjør følgende steg sekvensielt:
- Vis ucommittede endringer og bekreft med brukeren
- Fjern worktree og branch
1. Sjekk ucommittede endringer
git -C "$(dirname "$CLAUDE_PROJECT_DIR")/$(basename "$CLAUDE_PROJECT_DIR")-worktrees/$ARGUMENTS" status --short
Vis endringene og spør brukeren: "Er du sikker på at du vil forkas
Alternatives in Git
- Clean Worktrees (Automatic) — Automatically remove all worktrees for branches merged into master 25.5k ★
- Local Review — You are tasked with setting up a local review environment for a colleague's branch 10k ★
- Merge Command — Finalize worktree work: update docs, commit, merge to main, clean up 1.3k ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
3.1 Workspace Merge
Merge workspace-branch til feature uten å fjerne worktreen.
3.4 Workspace Finish
Avslutt workspace — commit-sjekk, merge til feature, rydd opp worktree og branch.
Herdr Plugin Renamer
Renames an auto-generated herdr worktree branch and workspace from the agent's first prompt, via on-device App
Agents Start Gitworktree
You are starting a new git worktree for isolated agent work. This command creates a worktree, registers it in
Seahelm
A native macOS workspace for coding agents — every git worktree a row on one roster, one agent to a split pane
Nix Agents
Nix Agents — a desktop workspace for coding agents: real terminals, one git worktree per task, Claude Code / C
Related Agents
GitOps
Git operations specialist. MUST BE USED for branch management, conflict resolution, git history analysis, work
Merge Cleanup
Commits worktree changes, cherry-picks them to main, removes the worktree, and prunes the branch. Use at the e
Overnight Preparer
Use this agent only from the /oss-overnight command. It prepares a fix branch for one PR in an isolated local