Back to skills
extension
Category: Development & EngineeringNo API key required

create-git-worktree

Automatically constructs a separate working environment using git worktree. It fetches the latest code from the default branch, creates a new worktree in the .git-worktrees/ directory, and automatically sets up .env and npm dependencies. The '/' in branch names is automatically converted to '-'. Existing worktrees are reused.

personAuthor: jakexiaohubgithub

Create Git Worktree and Setup Environment

Instructions

以下のコマンドを実行して、git worktreeを作成し、環境のセットアップを行います。 引数にはgit worktree化するブランチ名を指定してください。

bash scripts/create-worktree.sh [ブランチ名]