Skip to main content

Git Notes

Git notes are extra comments stored next to a commit, not inside it. Adding, editing, or removing a note does not change the commit SHA, so history, signatures, and already-pushed commits stay the same.

See also git notes in the Git documentation.

Gitember uses the default notes namespace refs/notes/commits.

Viewing a note​

Select a commit in History. When that commit has a note, the details pane shows a Notes section under the author, SHA, and signature fields.

Commits without a note keep the details pane unchanged.

Adding or editing a note​

  1. Right-click a commit in History.
  2. Choose Add note… (or Edit note… when a note already exists). The items sit directly under Reset to commit….
  3. Enter the note text and click OK.

An existing note is replaced. Clearing the text in the editor and confirming removes the note.

Removing a note​

  1. Right-click a commit that already has a note.
  2. Choose Remove note.
  3. Confirm.

Remove note is disabled when the commit has no note.

What Gitember stores​

JGit exposes NoteMap for the notes tree. Gitember adds, shows, and removes notes through JGit’s notesAdd / notesShow / notesRemove commands, which write a notes commit on refs/notes/commits.

ActionGit equivalent
Add / editgit notes add -f -m "…" <commit>
Showgit notes show <commit>
Removegit notes remove <commit>

Notes are local until you push refs/notes/commits. A regular Push of the branch does not publish them.

Summary​

ActionHow to trigger
View noteSelect the commit — Notes appears in details when present
Add noteRight-click → Add note…
Edit noteRight-click → Edit note…
Remove noteRight-click → Remove note