new-project.md

Creating New Projects

wt n <project-name> [--remote name]...

Creates a fresh project with bare worktree structure:

my-project/
├── .bare/          # git repository
├── .git            # file pointing to .bare/
└── main/           # default worktree

With Remotes

Add configured remotes from ~/.config/wt/config.lua:

wt n my-project --remote github --remote gitlab

Remotes use URL templates with ${project} substituted:

remotes = {
    github = "git@github.com:myuser/${project}.git"
}

Results in remote URL git@github.com:myuser/my-project.git.