Reuse Worktree

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

rogeriochaves e5cce86 385 B 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/tree/main/skills/reuse-worktree commit e5cce867e9

Frequently asked questions

npx skillmds@latest add rogeriochaves/reuse-worktree