Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/content/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ Worktrunk can delete **worktrees** and **branches**. Both have safeguards.

`wt remove` mirrors `git worktree remove`: it refuses to remove worktrees with uncommitted changes (staged, modified, or untracked files). The `--force` flag removes the worktree anyway, discarding all of those changes.

For worktrees containing precious ignored data (databases, caches, large assets), use `git worktree lock`:
To protect a worktree from removal entirely (say it holds a local database), lock it:

{{ terminal(cmd="git worktree lock ../myproject.feature --reason __WT_QUOT__Contains local database__WT_QUOT__") }}

Expand Down
2 changes: 1 addition & 1 deletion plugins/worktrunk/skills/worktrunk/reference/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ Worktrunk can delete **worktrees** and **branches**. Both have safeguards.

`wt remove` mirrors `git worktree remove`: it refuses to remove worktrees with uncommitted changes (staged, modified, or untracked files). The `--force` flag removes the worktree anyway, discarding all of those changes.

For worktrees containing precious ignored data (databases, caches, large assets), use `git worktree lock`:
To protect a worktree from removal entirely (say it holds a local database), lock it:

```bash
git worktree lock ../myproject.feature --reason "Contains local database"
Expand Down
2 changes: 1 addition & 1 deletion skills/worktrunk/reference/faq.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading