We have, successfully, tried to retrieve the notes from the remote repository, but what about your notes? How can you push them to the server? This has to be done with the push command just as with any other references, such as branches and commits.
Pushing Git notes to a remote repository
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:
- 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"...