Git Notes
Overview
Git notes attach metadata to commits (or any Git object) without modifying the objects themselves. Notes are stored separately and displayed alongside commit messages.
Core principle: Add information to commits after creation without rewriting history.
Core Concepts
Quick Reference
For complete command reference, see references/commands.md.
Essential Patterns
Code Review Tracking
Sharing Notes
Preserving Through Rebase
Common Mistakes
Best Practices
Git Notes Command Reference
Complete reference for all git notes commands and options.
Basic Operations
Add a Note
View Notes
Example output with notes:
Append to Notes
Edit Notes
Remove Notes
Copy Notes
Prune Notes
Get Notes Reference
Using Multiple Namespaces
Notes can be organized into separate namespaces (refs) for different purposes.
Specify Notes Ref
Environment Variable
Display Multiple Namespaces
Merging Notes
When notes exist in multiple refs or from different sources, they can be merged.


