1# Converting Existing Repos
2
3```bash
4wt init [--dry-run] [-y]
5```
6
7Converts a standard git repository to bare worktree structure.
8
9## Options
10
11| Flag | Purpose |
12|------|---------|
13| `--dry-run` | Show what would happen without making changes |
14| `-y` | Skip confirmation prompt |
15
16## What It Does
17
181. Moves `.git/` to `.bare/`
192. Creates `.git` file pointing to `.bare/`
203. Creates worktree for current branch
214. Removes orphaned files from project root
22
23## Example
24
25```bash
26cd ~/repos/existing-project
27wt init --dry-run # preview changes
28wt init -y # convert without prompting
29```
30
31After conversion:
32
33```
34existing-project/
35├── .bare/ # was .git/
36├── .git # file pointing to .bare/
37└── main/ # worktree with your files
38```