> ## Documentation Index
> Fetch the complete documentation index at: https://docs.diversion.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# update

> Diversion の update コマンドでワークスペースを同期・更新し、リポジトリの変更に追従します。

update コマンドは、現在チェックアウト中のブランチの最新の変更を現在のワークスペースに取り込みます。

```bash theme={null}
dv update [--conflict_resolution <strategy>] [--nowait]
```

`[--conflict_resolution <strategy>]` は競合の処理方法を設定します：

* `manual` — 競合を手動で解決する（デフォルト）
* `keep-current` — ワークスペースの変更を保持する
* `accept-incoming` — チェックアウト中のブランチの最新の変更を受け入れる

`[--nowait]` は、更新されたファイルのローカルワークスペースへの同期完了を待たずに即座に戻ります。デフォルトでは、同期が完了するまで待機します。
