GIT-NOTES(1) Git Manual GIT-NOTES(1) (NAME) git-notes - (SYNOPSIS) git notes [list []] git notes add [-f] [--llow-empty] [--R[no-]separator | --parator=] [--R[no-]stripspace] [-F | -m | (-c | -C) ] [-e] [] git notes copy [-f] ( --din | [] ) git notes append [--llow-empty] [--R[no-]separator | --parator=] [--R[no-]stripspace] [-F | -m | (-c | -C) ] [-e] [] git notes edit [--llow-empty] [] [--R[no-]stripspace] git notes show [] git notes merge [-v | -q] [-s ] git notes merge --ommit [-v | -q] git notes merge --bort [-v | -q] git notes remove [--ignore-missing] [--din] [...] git notes prune [-n] [-v] git notes get-ref (DESCRIPTION) . refs/notes/commits . . . . git log . "Notes ():" ( "Notes:" refs/notes/commits). git format-patch --0tes . . git log notes.displayRef . notes.rewrite. . (SUBCOMMANDS) list . ( " "). . add ( HEAD). ( -f ). add ( ) ( edit). -m -F . --parator . -e () -m -F ( ) . copy ( HEAD). ( -f ). : git notes add [-f] -C $(git notes list ) --din : SP [ SP ] LF . ( post-rewrite .) --din . append () -m -F ( HEAD). . --parator . -m -F -e ( ) . edit ( HEAD). show ( HEAD). merge . ( "remote") ( ) ( "local") . ( " " ) manual () . (.git/NOTES_MERGE_WORKTREE) . git notes merge --ommit git notes merge --bort . remove ( HEAD). edit . --din . --din . prune . get-ref . ( ) . (OPTIONS) -f, --rce ( ). -m , --ssage= ( ). -m . -F , --le= . - . -C , --euse-message= blob ( ) . ( git notes copy .) --0-stripspace . -c , --eedit-message= -C -c . --llow-empty . . --parator=, --parator, --0-separator ( ). --0-separator . . --ripspace, --0-stripspace (whitespace). ( git-stripspace(1)): o o o o \n . --ripspace -C/--euse-message. -C -m --ripspace -m -C . . --ef= . GIT_NOTES_REF core.notesRef . refs/notes/ notes/ refs/ refs/notes/ . --ignore-missing . --din remove copy . . -n, --ry-run . -s , --rategy= . : manual () ours theirs union cat_sort_uniq. notes.mergeStrategy . " " . --ommit git notes merge . git notes merge .git/NOTES_MERGE_WORKTREE . git notes merge ( .git/NOTES_MERGE_PARTIAL) .git/NOTES_MERGE_WORKTREE . .git/NOTES_MERGE_REF . --bort / git notes merge . . -q, --quiet . -v, -- . (prune) . (DISCUSSION) blob ( ). blob . "" [1]. . git log -p notes/commits . ( git-commit(1) ). . git log -p -g . (NOTES MERGE STRATEGIES) manual (.git/NOTES_MERGE_WORKTREE) . git notes merge --ommit git notes merge --bort . -s/--rategy notes.mergeStrategy : ours ( ) . theirs ( ) . union . cat_sort_uniq union . "cat | sort | uniq" . . . (EXAMPLES) . $ git notes add -m 'Tested-by: Johannes Sixt ' 72a144e2 $ git show -s 72a144e [...] Signed-off-by: Junio C Hamano Notes: Tested-by: Johannes Sixt blob Git ( ) . git hash-object : $ cc *.c $ blob=$(git hash-object -w a.out) $ git notes --ef=built add --llow-empty -C "$blob" HEAD ( git notes --ef=built add -F a.out HEAD .) git log . (CONFIGURATION) core.notesRef refs/notes/commits. . . git-config(1) . : notes.mergeStrategy . manual ours theirs union cat_sort_uniq . manual . " " git-notes(1) . --rategy git-notes(1) . notes..mergeStrategy refs/notes/ . notes.mergeStrategy . " " git-notes(1) . notes.displayRef ( ) core.notesRef GIT_NOTES_REF git log . GIT_NOTES_DISPLAY_REF (:) . . --0-notes git-log(1) --0tes= . core.notesRef ( GIT_NOTES_REF ) . notes.rewrite. ( amend rebase) false git . true . notes.rewriteRef . GIT_NOTES_REWRITE_REF . notes.rewriteMode ( notes.rewrite. ) . overwrite concatenate cat_sort_uniq ignore . concatenate . GIT_NOTES_REWRITE_MODE . notes.rewriteRef ( ) . (glob) . . . refs/notes/commits . GIT_NOTES_REWRITE_REF . notes.rewrite. . (ENVIRONMENT) GIT_NOTES_REF refs/notes/commits . core.notesRef . GIT_NOTES_DISPLAY_REF core.notesRef GIT_NOTES_REF . notes.displayRef . . GIT_NOTES_REWRITE_MODE . overwrite concatenate cat_sort_uniq ignore . core.rewriteMode . GIT_NOTES_REWRITE_REF . . notes.rewrite. notes.rewriteRef . (GIT) git(1) (NOTES) 1. bf/fe/30/.../680d5a... : (Object ID) . Git 2.55.0 2026-06-29 GIT-NOTES(1)