# Sharing Snapshots

We leave this up to the user because the snapshots are stored as files on your filesystem. As with any file they can be controlled with a [Version Control](https://en.wikipedia.org/wiki/Version_control) tool such as Git as well as backed up with tools such as Google Drive or Dropbox. For this guide, we will assume the use of Git.

## Prerequisites

1. Create a .gitignore file with the following:

```
.stoobly/db
.stoobly/settings.yml
.stoobly/snapshots/VERSION
.stoobly/tmp
```

## To Share Snapshots

1. Add, commit and push the snapshots.

```bash
git add .stoobly
git commit -m "Update <SCENARIO-NAME>"
git push origin main
```

2. Other team members who want to receive the updated snapshots then pull the changes.

```bash
git pull origin main
```

3. Team members then need to run the following command to build the requests in the new Stoobly context.

```bash
$ stoobly-agent snapshot apply
```


---

# 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://docs.stoobly.com/guides/how-to-mock-apis/how-to-snapshot-requests/sharing-snapshots.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.
