Why Devcontainer Support Matters
Unlike the original Git Graph extension, neo-git-graph is specifically designed to work in:- VS Code Remote Containers - Develop inside Docker containers
- GitHub Codespaces - Cloud-based development environments
- Remote SSH - Development on remote servers
- WSL (Windows Subsystem for Linux) - Linux environment on Windows
The original Git Graph changed its license in May 2019 and stopped receiving updates. Neo-git-graph is forked from the last MIT-licensed commit and adds modern devcontainer support.
Getting Started with Devcontainers
Install the extension
Install neo-git-graph in your VS Code environment:
Open your project in a devcontainer
If you have a
.devcontainer configuration:- Open the Command Palette (
Ctrl+Shift+PorCmd+Shift+P) - Run Remote-Containers: Reopen in Container
- Wait for the container to build and start
Verify Git is available
Neo-git-graph requires Git to be installed in your container. Most development containers include Git by default.To verify:If Git is not installed, add it to your devcontainer configuration:
Configuration for Remote Environments
Git Path Configuration
If Git is installed in a non-standard location in your container, configure the path:.devcontainer/devcontainer.json:
Repository Discovery
For workspaces with nested repositories, increase the search depth:Common Devcontainer Scenarios
Using with GitHub Codespaces
Using with GitHub Codespaces
Neo-git-graph works out of the box in GitHub Codespaces:
- Install the extension in your codespace
- Open the Git Graph from the status bar
- All features work the same as local development
.devcontainer/devcontainer.json:Using with Remote SSH
Using with Remote SSH
When connecting to a remote server:
- Install neo-git-graph on the remote server (not locally)
- Ensure Git is installed on the remote server
- Open your repository and launch Git Graph
Using with WSL
Using with WSL
For Windows Subsystem for Linux:
- Install the extension in WSL (it will prompt you)
- Open your WSL repository in VS Code
- Git Graph will use the Linux Git binary automatically
Multi-repository workspaces
Multi-repository workspaces
Neo-git-graph supports multiple repositories in one workspace:Set
- Each repository appears in the repository selector dropdown
- Switch between repositories without changing folders
- Configure
maxDepthOfRepoSearchto find nested repos
neo-git-graph.maxDepthOfRepoSearch: 2 to detect all three repositories.Performance Optimization
For large repositories in containers or remote environments:showUncommittedChanges: false- Skip checking working directory status (faster initial load)initialLoadCommits- Reduce initial commit count for faster renderingloadMoreCommits- Load fewer commits per batch
Troubleshooting
If Git Graph doesn’t work in your devcontainer:- Check Git installation: Run
git --versionin the terminal - Verify git.path: Check that VS Code’s Source Control works
- Repository detection: Ensure you’ve opened a folder containing a
.gitdirectory - Reload window: Sometimes a reload helps: Developer: Reload Window