Use Git CLI in an Insomnia project

Beta and uses: Insomnia
Related Documentation
Minimum Version
Insomnia - beta-12.6
TL;DR

Navigate to the local folder to use Git natively in your Insomnia Git Sync project.

Prerequisites

Download and install Insomnia.

When you create an Insomnia project with Git Sync, you can either add the repository now or later (if you’re using Insomnia 11.5 or later). If you want to add the repository when you create the project, you can either use an existing repository with Insomnia content or an empty repository.

Find your project’s local path

  1. Select your project options and click Settings.
  2. Check the section Path to local files: depending on your OS, Insomnia displays the exact local path where it stores the project.
  3. Copy the path.
  4. Paste the path into your terminal to navigate to the root of the repository. The command should look like this:

Use Git CLI in your Insomnia project

You can now run any native Git command, even actions not supported for the Insomnia GUI, like adding multiple remotes, cherry-picking, etc.

FAQs

That error is because the path has a space in it (Application Support), and your shell is splitting it into two arguments. cd only sees the first part (/Users/<your-user>/Library/Application), can’t find it, and complains.

Fix it by quoting the path that Insomnia provides from the UI:

cd "<path-from-Insomnia>"

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!