# Separate Git Dir and Work Dir
## Metadata
**Status**:: #x
**Zettel**:: #zettel/permanent
**Created**:: [[2024-01-01]]
**Topic**:: [[♯ Git]]
## 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"
```