gitnotes

command module
v0.0.0-...-cf35708 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 28, 2025 License: MIT Imports: 1 Imported by: 0

README

gitnotes

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.


Features

  • 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

Installation

Prerequisites
  • Go 1.18 or newer
  • Git installed and available in your system PATH
Build from source
git clone https://github.com/tomatoCoderq/gitnotes.git
cd gitnotes
go build -o gitnotes

You can now run the binary:

./gitnotes --help

Usage

Add a Note
gitnotes add HEAD

You'll be prompted to enter your note. The note is saved against the full SHA that HEAD points to.

Show Notes for a Ref
gitnotes show <ref>

Example:

gitnotes show abc1234
List All Notes
gitnotes list

This displays all refs that have associated notes and their contents.

Remove Notes
gitnotes rm <ref>
gitnotes rm -p title SomeTitle

Removes all notes for a given ref or for a given title (requires specification).


Data Storage

Notes are stored locally in:

./gitnotes.db

Roadmap

  • Expand tags/categories for notes
  • Export notes to Markdown
  • Shell completions (bash, zsh)

Documentation

Overview

Copyright © 2025 github.com/tmtcdr/gitnotes

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL