Import content to Insomnia from a Git repository

Pro and above and uses: Insomnia
TL;DR

Click Create > Git Clone and connect to the Git repository.

Prerequisites

Download and install Insomnia.

For this task, you need to have a remote Git repository that contains a .insomnia directory. To test this example, you can use the sample content provided in the Insomnia repository.

You can’t clone a repository that contains multiple files in the .insomnia/Workspace.

Clone the repository

In your Insomnia project, click Create > Git Clone, and select whether you want to clone the repository from GitHub, GitLab, or Git.

Edit the content

The imported workspace opens in Insomnia, you can start working on it. Insomnia opens the repository’s default branch, but you can switch to an existing branch or create a new one. In the bottom of the window, on the left, you can see the name of the branch you are currently on. You can click it to see the Git sync menu.

Git sync menu

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!