Separating notes by category

As we saw in the previous example, we can add notes to the commits; however, in some cases, it makes sense to store the information sorted by categories, such as featureImplemented, defect, and alsoCherryPick. As briefly explained at the beginning of the chapter, notes are stored in refs/notes/commits, but we can add multiple references so that we can easily sort and list the various scopes of the notes.

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.