Show HN: Git-jot – Git notes for branches

3 months ago 1

Bash script to emulate branch notes, useful for branching workflows. These branch-local notes (jottings):

  • persist across commits, merges, and rebases;
  • can be shared and stored on remotes;
  • inherit all note capabilities (e.g. history).

From the AUR, or with Homebrew:

brew install mtth/tap/git-jot

Otherwise install it manually by copying git-jot.sh as git-jot somewhere in your $PATH, then making it executable.

$ git jot # Open an editor to add notes to the current branch $ # Do some work, add some commits, rebase, etc... $ git jot # View and edit the existing branch note $ git switch other-branch $ git jot # Edit a different branch note $ git switch original-branch $ git jot -V # View the original branch's note $ git jot -X # Push the branch's note to its default remote

See the manpage for all options and more information.

Read Entire Article