# Comparing and Merging Hyperdrives

Sometimes it's useful to copy files between hyperdrives. This may be particularly useful after [forking a hyperdrive](https://beaker-browser.gitbook.io/docs/advanced/forking-hyperdrives) and making some changes.

To open the "Compare and Merge" interface, navigate to your hyperdrive, click on the Site Info button, go to the "Forks" submenu and click "Diff / Merge Original".

![](https://3230537287-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LvGfMSYfHlK61i8WW-1%2F-M60qYXv36i7HpqhwzJm%2F-M4qj_eIYDd9ICgCsaUm%2Fmenu-diff-merge.png?alt=media\&token=6c65a86a-077c-4c60-8fce-2d1183e5cebf)

This will open the compare interface.

![](https://3230537287-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LvGfMSYfHlK61i8WW-1%2F-M60qYXv36i7HpqhwzJm%2F-M4qjsvwEveXoReRAIsR%2Fdiff-merge-interface.png?alt=media\&token=0e0feede-b569-4f6d-bf03-24f2e85997ac)

Choose the source drive on the top left and the target drive on the right using the dropdowns.

![](https://3230537287-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LvGfMSYfHlK61i8WW-1%2F-M4qcFUmrRudYe0GQEhC%2F-M4qkKZ0s7_XWm_LcNp-%2Fdiff-merge-select-source.png?alt=media\&token=f624713e-0d26-4350-b4d5-72e762ae48a5)

## Merging drives

Select the files you want to merge by clicking on the checkboxes in the left nav, and then click "Merge {n} Changes" to copy the files into the target.

You can review the differences by selecting individual files in the left nav.

![](https://3230537287-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LvGfMSYfHlK61i8WW-1%2F-M4qcFUmrRudYe0GQEhC%2F-M4qke6hFyhnvk9gcHM9%2Fdiff-merge-individual-file.png?alt=media\&token=f68f7251-22a3-482e-ae8e-27f0cc117dd8)

The "Merge" will copy the files into the target drive, overwriting the selected files only.

## Other users' drives

If you don't own the target drive, you'll see a screen like this:

![](https://3230537287-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LvGfMSYfHlK61i8WW-1%2F-M60qYXv36i7HpqhwzJm%2F-M60rxYRgh3_GnsNjQpv%2Fdiff-merge-not-owner.png?alt=media\&token=1efc3b1e-76b2-4fe0-8052-e6c05c8de93b)

Send the URL to the drive owner. It will provide them with the same interface where they can review and merge the changes.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://beaker-browser.gitbook.io/docs/advanced/comparing-and-merging-hyperdrives.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
