diff --git a/README.md b/README.md index 0cb9173..ca7e964 100644 --- a/README.md +++ b/README.md @@ -140,6 +140,7 @@ P.S: All these commands are tested on `git version 2.7.4 (Apple Git-66)`. * [Number of commits in a branch](#number-of-commits-in-a-branch) * [Alias: git undo](#alias-git-undo) * [Add object notes](#add-object-notes) +* [Show all the git-notes](#show-all-the-git-notes) @@ -948,5 +949,10 @@ git config --global alias.undo '!f() { git reset --hard $(git rev-parse --abbrev git notes add -m 'Note on the previous commit....' ``` +## Show all the git-notes +```sh +git log --show-notes='*' +``` + diff --git a/tips.json b/tips.json index 2745894..54bc4ef 100644 --- a/tips.json +++ b/tips.json @@ -408,4 +408,7 @@ }, { "title": "Add object notes", "tip": "git notes add -m 'Note on the previous commit....'" +}, { + "title": "Show all the git-notes", + "tip": "git log --show-notes='*'" }]