Using Git Worktrees

Use when starting feature work that should be isolated from the current checkout, especially in git repositories where a separate worktree would reduce risk.

6bnbn 871fe53 817 B Updated

File contents

Using Git Worktrees

Goal

Create an isolated workspace for risky or long-running changes without disturbing the current checkout.

When To Use

  • large feature work
  • risky refactors
  • parallel efforts on different branches
  • keeping the current workspace stable while another branch is explored

Rules

  • Only use this in git repositories.
  • Confirm the target location before creating a new worktree if project conventions are unclear.
  • Make sure the worktree path will not be accidentally committed.
  • After creating the worktree, run the project's normal setup before making claims about readiness.

6bnbn/flowpilot/tree/main/兼容codex@cursor一键安装技能/cursor一键安装技能/skills/using-git-worktrees commit 871fe53ea9

Frequently asked questions

npx skillmds@latest add 6bnbn/using-git-worktrees