How to do it...

Before we can push the notes from the shareNotes repository, we have to create a note to be pushed, as the notes we have now are all available on the remote repository. The remote repository in this case is the chapter5 directory:

  1. You have found a commit you would like to add a note to, and you want to add the note to the verified reference:
$ git notes --ref verified add -m "Verified by john.doe@example.com" 871ee53b52a
  1. Now that we have added the note, we can list it with the git log command:
$ git log --notes=verified -1 871ee53b52a
commit 871ee53b52a7e7f6a0fe600a054ec78f8e4bff5a
Author: Robin Rosenberg <robin.rosenberg@dewire.com>
Date:   Sun Feb 2 23:26:34 2014 +0100
    
 Reset internal state canonical length in WorkingTreeIterator ...

Get Git Version Control Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.