builtin-notes: Add "prune" subcommand for removing notes for missing objects
[git/mingw.git] / Documentation / git-notes.txt
blob3973f902657eb4330d8af97d8301e35371d70e18
1 git-notes(1)
2 ============
4 NAME
5 ----
6 git-notes - Add/inspect commit notes
8 SYNOPSIS
9 --------
10 [verse]
11 'git notes' (edit [-F <file> | -m <msg>] | show | remove | prune) [commit]
13 DESCRIPTION
14 -----------
15 This command allows you to add/remove notes to/from commit messages,
16 without changing the commit.  To discern these notes from the message
17 stored in the commit object, the notes are indented like the message,
18 after an unindented line saying "Notes:".
20 To disable commit notes, you have to set the config variable
21 core.notesRef to the empty string.  Alternatively, you can set it
22 to a different ref, something like "refs/notes/bugzilla".  This setting
23 can be overridden by the environment variable "GIT_NOTES_REF".
26 SUBCOMMANDS
27 -----------
29 edit::
30         Edit the notes for a given commit (defaults to HEAD).
32 show::
33         Show the notes for a given commit (defaults to HEAD).
35 remove::
36         Remove the notes for a given commit (defaults to HEAD).
37         This is equivalent to specifying an empty note message to
38         the `edit` subcommand.
40 prune::
41         Remove all notes for non-existing/unreachable objects.
43 OPTIONS
44 -------
45 -m <msg>::
46         Use the given note message (instead of prompting).
47         If multiple `-m` options are given, their values
48         are concatenated as separate paragraphs.
50 -F <file>::
51         Take the note message from the given file.  Use '-' to
52         read the note message from the standard input.
55 Author
56 ------
57 Written by Johannes Schindelin <johannes.schindelin@gmx.de>
59 Documentation
60 -------------
61 Documentation by Johannes Schindelin
63 GIT
64 ---
65 Part of the linkgit:git[7] suite