opening projects
Twig works with Git repositories on your local machine. This page covers how to open, manage, and switch between projects.
opening a project
from the welcome screen
When you first launch twig (or have no project open):
- Click "open project"
- Navigate to a folder containing a Git repository
- Select the folder and confirm
from the menu
With twig already open:
- Go to file > open project (or
cmd + o) - Select your repository folder
- The project will open in the current window
cloning from github
To start with a repository you don't have locally:
- Go to file > clone repository
- Enter the GitHub URL
- Choose where to save it locally
- Twig will clone and open the project
project requirements
Twig works best with:
- git repositories - the folder must be a Git repo (contain a
.gitdirectory) - local files - the project must be on your local machine
- read/write access - twig needs permission to read and modify files
Projects without Git won't have workspace features available.
recent projects
Twig remembers projects you've opened:
- Access recent projects from file > open recent
- Recent projects appear on the welcome screen
- Remove projects from the list by right-clicking
switching projects
To work on a different project:
- File > open project (or
cmd + o) - Select the new project
This closes the current project and opens the new one.
multiple projects
Currently, twig works with one project at a time per window. To work on multiple projects simultaneously, open additional twig windows.
project settings
Each project can have its own settings:
- PostHog project connection
- Workspace configuration
- Editor preferences
Access project settings from the gear icon or preferences menu.
troubleshooting
"not a git repository"
Twig requires Git. Initialize Git in your project:
cd your-project
git init
permission errors
Ensure you have read and write access to the project folder. On macOS, you may need to grant twig disk access in system preferences > security & privacy > privacy > files and folders.
large projects
Very large repositories may take a moment to index. Twig will show a loading indicator while it processes the project structure.