> For the complete documentation index, see [llms.txt](https://docs.stoobly.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.stoobly.com/guides/how-to-mock-apis/how-to-snapshot-requests/sharing-snapshots.md).

# 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
```
