Add metadata to a commit without rewriting it.
Section: Specialized Tools
Attach a note to a commit
bash
bash
git notes add -m "Reviewed by security team" <commit_sha>Explanation
Git notes let you annotate objects while preserving their original identity and hash.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Specialized Tools
Cherry-pick a range without committing
Apply commit changes into the index and working tree first.
Initialize and update submodules recursively
Populate nested submodules after clone or after config changes.
Compare two versions of a branch series
Review how a patch series changed across rebases.
Interactive rebase last 5 commits
Open the last 5 commits in the interactive rebase todo list.
Show reflog with local timestamps
Inspect branch and HEAD movements with readable times.
Create an additional worktree for a branch
Check out another branch in a separate directory without cloning again.