diff --git a/README.md b/README.md index adab0cf..0cb9173 100644 --- a/README.md +++ b/README.md @@ -139,6 +139,7 @@ P.S: All these commands are tested on `git version 2.7.4 (Apple Git-66)`. * [Revert: Reverting an entire merge](#revert-reverting-an-entire-merge) * [Number of commits in a branch](#number-of-commits-in-a-branch) * [Alias: git undo](#alias-git-undo) +* [Add object notes](#add-object-notes) @@ -942,5 +943,10 @@ git rev-list --count git config --global alias.undo '!f() { git reset --hard $(git rev-parse --abbrev-ref HEAD)@{${1-1}}; }; f' ``` +## Add object notes +```sh +git notes add -m 'Note on the previous commit....' +``` + diff --git a/tips.json b/tips.json index 2d07351..2745894 100644 --- a/tips.json +++ b/tips.json @@ -405,4 +405,7 @@ },{ "title": "Alias: git undo", "tip": "git config --global alias.undo '!f() { git reset --hard $(git rev-parse --abbrev-ref HEAD)@{${1-1}}; }; f'" +}, { + "title": "Add object notes", + "tip": "git notes add -m 'Note on the previous commit....'" }]