Repository navigation
Submodules
A submodule is a git repository inside another git repository. The outer one (the parent) does not store the submodule's files. It records only which commit of the submodule it uses, plus the submodule's URL in a file called .gitmodules. Projects use submodules to include a shared library or theme at an exact version.
Because the parent records a commit, not files, working with submodules has its own steps: after cloning, the submodule folders are empty until you init and update them, and when someone moves the parent to a newer submodule commit, you update again.
As their own repositories. Once a submodule is checked out, Nibtree finds it like any nested repository. It appears in the Changes sidebar with a submodule tag next to its name, and you commit, branch and push in it as usual. See Workspaces.
As one entry in the parent. In the parent's changes, a submodule is a single row tagged submodule, like git status shows it. The row says what changed:
- new commits: the submodule has a different commit checked out than the one the parent records;
- modified content: files inside the submodule are changed;
- untracked content: the submodule has new files.

A submodule entry has only a Stage button: staging it records the submodule's current commit in the parent. There is no discard, because the change lives inside the other repository; use Update Submodule to go back to the recorded commit. Right-click the entry for:
- Open as Repository: make the submodule the active repository (it is added to the workspace if needed).
- Update Submodule: check out the commit the parent records.
- Update to Latest Remote: move it to the newest commit of the branch it follows.
Opening the entry's diff shows "Subproject commit" and a commit id on each side, like git diff.
Nibtree respects a submodule's ignore setting (in .gitmodules or your repository config), just like git status.
All submodule commands work on the parent repository. You find them in two places:
- Git > Submodules in the menu bar, for the active repository.
- The parent's ... menu in the Changes sidebar, under Submodules.
| Item | What it does |
|---|---|
| Init Submodules (Init) | Registers the submodules from .gitmodules in your repository config. |
| Update Submodules (Update) | Clones missing submodules and checks out the recorded commits, also inside nested submodules. |
| Update to Latest Remote | Like Update, but moves each submodule to the latest commit of the branch it follows. |
| Sync URLs | Copies changed URLs from .gitmodules into your config, after someone moved a submodule to a new server. |
| Add Submodule... | Adds a new submodule (see below). |
| Remove Submodule... | Removes one (see below). |
| Open Submodule as Repository... (Open as Repository) | Makes a checked-out submodule the active repository. |
When the repository has several submodules, Remove and Open ask which one. Update shows git's progress in the status bar.
- Open the parent repository.
- Choose Git > Submodules > Update Submodules.
That runs init and update in one step. The submodules then appear as repositories in the Changes sidebar.
Choose Git > Submodules > Add Submodule....

-
Repository URL: where the submodule comes from, for example
https://github.com/owner/library.git. - Path in this repository: the folder it goes into. It starts from the URL's name, and must be a relative path inside the repository that no other submodule uses.
- Branch to follow (optional): the branch that Update to Latest Remote uses.
- Click Add.
Git clones it and stages .gitmodules and the new submodule. A note reminds you to commit them, so the parent records the submodule.
Choose Git > Submodules > Remove Submodule... and confirm. Nibtree deinitializes the submodule (git stops treating it as checked out). It deletes its folder and its cloned repository inside .git/modules, where git keeps submodule copies, and stages the removal. Commit to finish. Unpushed work inside the submodule is lost, which is why it asks first.
The storefront repository uses a themes/acme submodule. A teammate updated it and you pulled.
- The parent's changes show
themes/acmewith new commits: your checkout is still on the old commit. - Right-click it and choose Update Submodule. The entry disappears, because the submodule now matches what the parent records.
These pages are generated from docs/wiki. To correct something, open a pull request against the source file; edits made here are overwritten.
Using Nibtree
- Getting Started
- Welcome Screen
- Workspaces
- Files Panel
- File Operations
- File Icons
- Rounded Panels
- Editor and Tabs
- Pin Reorder and Wrap Tabs
- Single Tab Title
- Split Editor
- New File and Unsaved Changes
- Unload Hidden Tabs
- Editing Code
- Code Appearance
- Markdown Editor
- Image and PDF Preview
- Search Everywhere
- Recent Files
- Navigation Bar
- Find and Replace
- Changes and Commits
- Sign In Prompts
- Commit Box Layout
- Repository Actions
- Commit Options
- Ignoring Files
- Diffs
- Inline Diffs
- Staging View
- Revert a Change
- Resolving Conflicts
- Merge Tool
- Blame
- History and Log
- Merge Commits
- Branches and Tags
- Branches Popup
- Remotes
- Stashes
- Shelf
- Git Menu
- Git Dialogs
- Interactive Rebase
- Worktrees
- AI Agents
- AI Tasks
- AI Usage
- Keep Computer Awake
- Submodules
- Git LFS
- GitHub
- Git Console
- Terminal
- Terminal Features
- Scripts
- Navigation
- Menus
- Settings
- Settings Search
- Color Themes
- Settings Terminal and Automation
- Settings Files
- Updates
- Status Bar and Help
- Notifications
- Memory Use
- Clear Cache
- MCP and CLI
- Git Mergetool
- Keyboard Shortcuts
- Keyboard Shortcuts Editor
- Troubleshooting
- Troubleshooting Git
Developers
- Developer Guide
- Architecture
- Project Layout
- Backend
- How Folder Watching Works
- Folder Watching Bugs We Fixed
- How Workspace Files Work
- How the Preview Scheme Works
- Backend Services
- How Terminal Features Work
- Terminal Bugs We Fixed
- Frontend
- How the Rich Markdown Editor Works
- Rich Markdown Bugs We Fixed
- Git Menu Links
- Menu Keys and Routing
- Frontend Modules
- Blame Bugs We Fixed
- Project Color And Title Bar
- One Diff View
- Diff Bugs We Fixed
- Merge Tool Layouts
- Merge Tool Bugs We Fixed
- Color Theme Bugs We Fixed
- How the Connected Diff Works
- Rounded Panels Bugs We Fixed
- Update Bugs We Fixed
- Status Bar Bugs We Fixed
- MCP and CLI Bugs We Fixed
- Repository Actions Bugs We Fixed
- How the Changes Tab Works
- CodeMirror Patterns
- How the Cursor Works
- How Editor Features Work
- How the Path Bar Works
- Commands and Events
- Settings Reference
- Commands Workspace and Changes
- Commands Branches and Remotes
- Commands History and Extras
- Commands App and Tools
- Testing
- Test Suites
- Debugging
- Debugging with MCP
- Measuring Setting Memory
- How Terminal Memory Is Measured
- How Markdown Diagrams Work
- Releases and CI
- Publishing the Wiki
- Versioning and Changelog
- Browser Version Packages
- Browser Release Checks
- Docker Image
- Platforms and Signing
- Windows Support
- Windows Bugs We Fixed
- Windows MCP and CLI
- Docs and Screenshots
- UI Library
- UI Library MCP
- UI Library Bugs
- UI Library Migration
- Contributing
How features work
- Welcome screen
- Workspaces and folders
- Files panel
- File operations
- File icons
- Editor and tabs
- Pin, reorder and wrap tabs
- Single tab title
- Split editor
- New File and unsaved changes
- Unload hidden tabs
- Editing code
- Code appearance
- Markdown editor
- Image and PDF preview
- Search Everywhere
- Recent Files
- Navigation Bar
- Find and replace
- Changes and commits
- Sign-in prompts
- Commit box layout
- Repository actions
- Commit options
- Ignoring files
- Diffs
- Inline diffs
- Staging view
- Revert a change
- Resolving conflicts
- Merge tool
- Blame
- History and log
- Merge commits
- Commit tabs
- Branches and tags
- Branches popup
- Remotes
- Stashes
- Shelf
- Git menu
- Git dialogs
- Interactive rebase
- Worktrees
- AI agents
- AI usage
- Keep computer awake
- AI tasks
- Submodules
- Git LFS
- GitHub account
- Git Console
- Back and Forward
- Integrated terminal
- Scripts tool window
- Menu bar
- Settings
- Search in Settings
- Color themes
- Rounded panels
- Updates and release channels
- Status bar and help links
- Notifications
- Memory readout and memory log
- Clear Cache
- MCP server and command line tool
- git mergetool mode