git-notes-cli (git-notes)
Command-line interface for
git-notes— decentralized code comments that live inside Git forever.
git-notes allows developers to add comments, reviews, and discussion threads directly to commits, files, and line numbers without altering Git commit history.
⚡ Installation
Install from crates.io via Cargo:
Or download precompiled standalone binaries from GitHub Releases.
🚀 Commands
Add a Note
Reply to a Thread
Show Discussion Thread
List Notes
Resolve / Approve
Quickies & Single-Letter Abbreviations (gn)
Save keystrokes with fast, ergonomic quickies:
gn a -f file.rs -l 42 -m "..."— Quickie add notegn l— List notes with compact numbered index[1],[2]gn r 1 -m "Fixed!"— Reply directly using quick index numbergn ok 1— Resolve / approve note by numbergn s— Interactive terminal arrow-key thread pickergn d— View git diff with inline notesgn b -f file.rs— Blame with inline notes annotationsgn doc— Doctor health check & stale-note detectorgn heal— Auto-heal & re-anchor notes after git rebase / amendgn check/gn gate— CI quality gating and merge-readiness checkgn verify/gn sig— Verify cryptographic signatures of notesgn sum— AI summary of open discussion threads (Gemini)gn i— 1-second repo setup (tracking refspec + hooks)gn p2p— Spin up local Wi-Fi P2P sync servergn imp <gitlab|bitbucket|jira|pr>— Import reviews from any platform
Cryptographic Note Signing & Verification (gn add -s, gn verify)
Cryptographically sign notes with GPG or SSH keys for provenance and tamper detection:
# Sign a new note with default or configured signing key
# Cryptographically sign a reply
# Verify signatures across all notes with color badges ([✔ Signed], [⚠ Unsigned], [✗ Bad Signature])
# Verify a specific note thread or note index
CI Quality Gating & Readiness (gn check, gn gate)
Ensure notes and code reviews are satisfied before merging:
# Verify at least 1 Approved review note and zero unresolved threads
# Or using alias:
Shell Auto-Completions (gn completions)
Generate or automatically install tab completions for bash, zsh, fish, powershell, or elvish:
# Automatically detect shell and install completions into profile/completions directory
# Or generate completion script directly:
View & Customize Shortcuts
# View all abbreviations and keybindings
# Customize your own aliases
# Reset to defaults
Export Notes