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