Prepare the new worktree
Right after you create a worktree, the app shows the ignored files that the root .worktreeinclude selects, such as .env, and the repository's setup commands, such as npm install. “Prepare” copies the files and runs the commands in the new folder, with live output and “Cancel”.
It only copies files ignored by git, within the same repository, without overwriting anything.
git worktree add ../portal-hotfix -b hotfix/timeoutcp .env ../portal-hotfix/cd ../portal-hotfix && npm install
“Prepare”: copies the .env and runs npm install.