Skip to content

tomatoCoderq/gitnotes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

CLI tool for attaching personal notes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages