Skip to main content

Add or inspect Git object notes.

# To list all notes and the objects they are attached to:
git notes list

# To list all notes attached to a given object (defaults to HEAD):
git notes list [<object>]

# To show the notes attached to a given object (defaults to HEAD):
git notes show [<object>]

# To append a note to a specified object (opens the default text editor):
git notes append <object>

# To append a note to a specified object, specifying the message:
git notes append --message="<message_text>"

# To edit an existing note (defaults to HEAD):
git notes edit [<object>]

# To copy a note from one object to another:
git notes copy <source_object> <target_object>

# To remove all the notes added to a specified object:
git notes remove <object>