Repository navigation
Ignoring Files
Some files never belong in a commit: build output, logs, editor settings, secrets in a .env file. You can tell git to ignore them, and they stop showing up as changes. Nibtree does this from a right-click.
A few words first. A .gitignore file lists patterns of files git should ignore. It lives in the repository and is committed, so everyone on the team shares it. .git/info/exclude works the same way, but it stays on your computer and is never committed: use it for things only you have, such as your own scratch files. An untracked file is one git does not know yet.
- Right-click a file or folder in the Files panel, or a file in Changes.
- Choose Add to .gitignore.
- Pick a pattern.

The Add to .gitignore submenu for src/wishlist.ts: the file, its folder or its extension.
For a file, the submenu offers three patterns. Each item is the pattern itself, with a grey hint next to it:
-
/src/wishlist.ts(this file): only that one file. -
/src/(this folder): the folder the file is in, with everything inside. A file at the top of the repository has no folder choice. -
*.ts(this extension): every file with that ending, in every folder. Files likeMakefileor.envhave no extension, so this choice is left out.
For a folder, the submenu offers only the folder itself, such as /dist/.
The leading / anchors the pattern at the top of the repository, so /dist/ ignores the dist folder there and not one deeper down. Names with special characters, such as *, ?, [, a leading # or trailing spaces, are written so that git reads them as plain names.
The pattern goes into the .gitignore at the top of the repository, which is created when it is missing. A note confirms it, for example Added /src/wishlist.ts to .gitignore. If the pattern is there already, the note says so and nothing is added twice. The new line keeps the file's own line endings.
To keep the pattern out of the shared file, open Add to .gitignore > Add to .git/info/exclude and pick the same kind of pattern there. Nobody else sees it.
Add to .gitignore > Edit .gitignore opens the repository's .gitignore in an editor tab, creating an empty one first if there is none. Use it to remove a line, add a comment (a line starting with #) or write a pattern of your own.
Ignoring only works for files git does not track yet. A file that is already committed stays tracked, even when a pattern matches it. So after adding a pattern, Nibtree checks for tracked files it now matches. When it finds some, it asks Remove from Git?:
-
Remove from Git runs
git rm --cachedon them. The files stay on your disk, but git stops tracking them. The removal shows up as a staged deletion in Changes, and you commit it like any other change. - Cancel leaves them tracked. The pattern is still added and applies to new files.
Example: someone committed debug.log by mistake. Right-click it in the Files panel, choose Add to .gitignore and the file pattern, then confirm Remove from Git and commit. From then on, debug.log stays on your disk but out of git.
- Ignoring never changes or deletes your files.
- The menu is not offered for conflicted files or for the repository folder itself.
- In a workspace with several repositories, the pattern goes to the repository the file belongs to.
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