Reuse Worktree

Reset this worktree to latest main and create a new branch for fresh work.

rogeriochaves Updated

File contents

Reset this worktree to latest main and create a new branch for fresh work.

Steps:

  1. git fetch origin main
  2. git reset --hard origin/main
  3. Create a new branch: git checkout -b $ARGUMENTS

If no branch name is provided, ask the user what to name the branch.

rogeriochaves/skills commit e5cce867e9

Frequently asked questions

npx get-skill add rogeriochaves/reuse-worktree