gitnotes is a command-line tool for attaching personal notes to Git commits or branches. Notes are stored locally in a persistent BoltDB database and are not committed to your Git repository. This allows developers to maintain contextual or task-related information without polluting the codebase or Git history.
- Add notes to specific commits or branches
- View notes for a ref
- List all stored notes
- Remove notes
- Store multiple notes per ref
- Persistent local storage using BoltDB
- Go 1.18 or newer
- Git installed and available in your system PATH
git clone https://github.com/tomatoCoderq/gitnotes.git
cd gitnotes
go build -o gitnotesYou can now run the binary:
./gitnotes --helpgitnotes add HEADYou'll be prompted to enter your note. The note is saved against the full SHA that HEAD points to.
gitnotes show <ref>Example:
gitnotes show abc1234gitnotes listThis displays all refs that have associated notes and their contents.
gitnotes rm <ref>
gitnotes rm -p title SomeTitleRemoves all notes for a given ref or for a given title (requires specification).
Notes are stored locally in:
./gitnotes.db
- Expand tags/categories for notes
- Export notes to Markdown
- Shell completions (bash, zsh)