Documentation / git-notes.txton commit builtin-notes: Add --message/--file aliases for -m/-F options (ba20f15)
   1git-notes(1)
   2============
   3
   4NAME
   5----
   6git-notes - Add/inspect object notes
   7
   8SYNOPSIS
   9--------
  10[verse]
  11'git notes' [list [<object>]]
  12'git notes' edit [-F <file> | -m <msg>] [<object>]
  13'git notes' show [<object>]
  14'git notes' remove [<object>]
  15'git notes' prune
  16
  17
  18DESCRIPTION
  19-----------
  20This command allows you to add/remove notes to/from objects, without
  21changing the objects themselves.
  22
  23A typical use of notes is to extend a commit message without having
  24to change the commit itself. Such commit notes can be shown by `git log`
  25along with the original commit message. To discern these notes from the
  26message stored in the commit object, the notes are indented like the
  27message, after an unindented line saying "Notes:".
  28
  29To disable notes, you have to set the config variable core.notesRef to
  30the empty string.  Alternatively, you can set it to a different ref,
  31something like "refs/notes/bugzilla".  This setting can be overridden
  32by the environment variable "GIT_NOTES_REF".
  33
  34
  35SUBCOMMANDS
  36-----------
  37
  38list::
  39        List the notes object for a given object. If no object is
  40        given, show a list of all note objects and the objects they
  41        annotate (in the format "<note object> <annotated object>").
  42        This is the default subcommand if no subcommand is given.
  43
  44edit::
  45        Edit the notes for a given object (defaults to HEAD).
  46
  47show::
  48        Show the notes for a given object (defaults to HEAD).
  49
  50remove::
  51        Remove the notes for a given object (defaults to HEAD).
  52        This is equivalent to specifying an empty note message to
  53        the `edit` subcommand.
  54
  55prune::
  56        Remove all notes for non-existing/unreachable objects.
  57
  58OPTIONS
  59-------
  60-m <msg>::
  61--message=<msg>::
  62        Use the given note message (instead of prompting).
  63        If multiple `-m` options are given, their values
  64        are concatenated as separate paragraphs.
  65
  66-F <file>::
  67--file=<file>::
  68        Take the note message from the given file.  Use '-' to
  69        read the note message from the standard input.
  70
  71
  72Author
  73------
  74Written by Johannes Schindelin <johannes.schindelin@gmx.de> and
  75Johan Herland <johan@herland.net>
  76
  77Documentation
  78-------------
  79Documentation by Johannes Schindelin and Johan Herland
  80
  81GIT
  82---
  83Part of the linkgit:git[7] suite