Import content to Insomnia from a Git repository
Click Create > Git Clone and connect to the Git repository.
Prerequisites
Git repository
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.