Synchronize Insomnia content with Git

Pro and above and uses: Insomnia
TL;DR

Create an empty remote Git repository and an Insomnia workspace. In the workspace, click the button at the bottom of the left pane and connect the repository, then commit and push your content.

Prerequisites

Download and install Insomnia.

Create an empty remote Git repository.

Create a workspace in Insomnia. A workspace can be a design document, a collection, a mock server, or an environment.

Select the workspace to synchronize

Connect to the repository

Select whether you want to clone the repository from GitHub, GitLab, or Git.

Create a new branch

Insomnia synchronizes with the repository’s default branch, but it’s a good practice to make changes on a different branch.

  1. Click the name of the branch at the bottom of the left pane to see the Git sync menu.
  2. Click Branches.
  3. Enter a name for the new branch and click Create.

Commit and push the content to your repository

  1. Click the name of the branch.
  2. Click Commit.
  3. Enter a commit message.
  4. Select the content that you want to commit to the repository.
  5. Click Commit, then click Close once the changes are committed.
  6. Click the name of the branch and click Push.

You can see in your repository that Insomnia added a .insomnia directory with your content in it.

Something wrong?

Help us make these docs great!

Kong Developer docs are open source. If you find these useful and want to make them better, contribute today!