# Separate Git Dir and Work Dir
## Synopsis
In the work dir:
- Move `.git` out
- Create a text file .git and set gitdir in it
```
gitdir: /path/to/gitdir
```
In the gitdir, edit config to add the worktree path
```toml
[core]
worktree = "/path/to/workdir"
```