Repository navigation
Commands History and Extras
Commands for the log, blame, file history, reset, worktrees, submodules, Git LFS and the GitHub account. How to read the columns, the events and the channels are explained in Commands and Events.
| Command | Wrapper | Returns | Kind | What it does |
|---|---|---|---|---|
get_log |
getLog(repoPath, offset, limit, allRefs) |
CommitSummary[] |
git2 | one page of history (at most 1000) |
get_commit_details |
getCommitDetails(repoPath, commitId) |
CommitDetails |
git2 | message, parents and changed files |
blame_file |
blameFile(repoPath, filePath, revision, contents) |
BlameInfo |
CLI |
git blame --porcelain (of contents when set), with originalLines
|
file_history |
fileHistory(repoPath, filePath, offset, limit) |
FileHistoryEntry[] |
CLI |
git log --follow of one file, newest first, with its path in each commit |
line_history |
lineHistory(repoPath, filePath, startLine, endLine, limit) |
LineHistoryEntry[] |
CLI |
git log -L start,end:file (1-based, inclusive, lines of the HEAD version) |
resolve_revision |
resolveRevision(repoPath, revision) |
string |
git2 | the full commit id a branch, tag, hash or HEAD points at |
cherry_pick |
cherryPick(repoPath, commitId) |
OpOutcome |
CLI | git cherry-pick |
revert_commit |
revertCommit(repoPath, commitId) |
OpOutcome |
CLI | git revert --no-edit |
reset_to |
resetTo(repoPath, commitId, mode) |
void |
CLI |
git reset with soft, mixed, hard or keep (Reset HEAD dialog and the Log) |
checkout_commit |
checkoutCommit(repoPath, commitId) |
void |
CLI | git switch --detach |
File and line history use the CLI because libgit2 can neither follow renames nor trace a range of lines (git/history.rs).
A worktree is a second work folder of the same repository. See How Worktrees Work.
| Command | Wrapper | Returns | Kind | What it does |
|---|---|---|---|---|
list_worktrees |
listWorktrees(repoPath) |
WorktreeInfo[] |
CLI |
git worktree list --porcelain, marking the current one |
add_worktree |
addWorktree(repoPath, worktreePath, branch) |
string |
CLI |
git worktree add for an existing, new or detached WorktreeBranch; returns its path |
remove_worktree |
removeWorktree(repoPath, worktreePath, force) |
void |
CLI |
git worktree remove, --force when asked |
lock_worktree |
lockWorktree(repoPath, worktreePath, reason) |
void |
CLI |
git worktree lock, with an optional reason |
unlock_worktree |
unlockWorktree(repoPath, worktreePath) |
void |
CLI | git worktree unlock |
prune_worktrees |
pruneWorktrees(repoPath) |
string |
CLI |
git worktree prune --verbose; returns git's report |
worktree_has_changes |
worktreeHasChanges(worktreePath) |
boolean |
git2 | whether removing it would throw away changes (it then needs force) |
Paths are relative to the parent repository. See How Submodules Work.
| Command | Wrapper | Returns | Kind | What it does |
|---|---|---|---|---|
list_submodules |
listSubmodules(repoPath) |
SubmoduleInfo[] |
git2 | every submodule from .gitmodules, the index and HEAD |
init_submodules |
initSubmodules(repoPath, submodulePaths) |
string |
CLI |
git submodule init; every submodule when the list is empty |
update_submodules |
updateSubmodules(repoPath, remote, submodulePaths) |
string |
CLI |
git submodule update --init --recursive, --remote when asked, with git-progress
|
sync_submodules |
syncSubmodules(repoPath) |
string |
CLI | git submodule sync --recursive |
add_submodule |
addSubmodule(repoPath, url, submodulePath, branchName) |
string |
CLI |
git submodule add, with a branch when given |
remove_submodule |
removeSubmodule(repoPath, submodulePath) |
void |
CLI | deinit, git rm and its clone under .git/modules
|
Git LFS (Large File Storage) keeps big files outside the repository. See How Git LFS Works.
| Command | Wrapper | Returns | Kind | What it does |
|---|---|---|---|---|
lfs_status |
lfsStatus(repoPath, checkInstall) |
LfsStatus |
CLI | whether git-lfs is installed (checked once per app run, only when used or with checkInstall) and used, its patterns and files |
lfs_track |
lfsTrack(repoPath, pattern) |
string |
CLI | git lfs track <pattern> |
lfs_untrack |
lfsUntrack(repoPath, pattern) |
string |
CLI | git lfs untrack <pattern> |
lfs_transfer |
lfsTransfer(repoPath, pull) |
string |
CLI |
git lfs pull (pull true) or git lfs fetch, with git-progress
|
lfs_prune |
lfsPrune(repoPath) |
string |
CLI | git lfs prune |
lfs_install |
lfsInstall(repoPath) |
string |
CLI |
git lfs install --local (the hooks of this repository) |
The token goes in once and never comes back to the UI. See How GitHub Works.
| Command | Wrapper | Returns | Kind | What it does |
|---|---|---|---|---|
github_account |
githubAccount() |
GitHubAccount | null |
file | the signed-in account from ~/.nibtree/github.json; no network, no keychain |
github_cli_status |
githubCliStatus() |
GhCliStatus |
app | whether the gh CLI is installed and signed in |
github_sign_in_with_token |
githubSignInWithToken(token) |
GitHubAccount |
net | verifies the token with GET /user, then keeps it only in the system keychain |
github_sign_in_with_cli |
githubSignInWithCli() |
GitHubAccount |
net | uses gh auth token on demand; stores only the login |
github_sign_out |
githubSignOut() |
void |
file | removes the keychain entry and github.json
|
github_share_project |
githubShareProject(repoPath, request) |
GitHubSharedRepository |
net | creates the repository on GitHub and adds it as a remote, committing first when asked; push comes next |
github_repository |
githubRepository(owner, repo) |
GitHubRepositoryInfo |
net | the repository's details, such as whether it is a fork |
github_sync_fork |
githubSyncFork(owner, repo, branchName) |
GitHubSyncForkOutcome |
net | GitHub's merge-upstream for one branch of a fork |
github_create_gist |
githubCreateGist(request) |
GitHubGist |
net | creates a gist |
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