Skip to content

Commit 9007100

Browse files
committed
git-notes
1 parent dca7604 commit 9007100

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ P.S: All these commands are tested on `git version 2.7.4 (Apple Git-66)`.
139139
* [Revert: Reverting an entire merge](#revert-reverting-an-entire-merge)
140140
* [Number of commits in a branch](#number-of-commits-in-a-branch)
141141
* [Alias: git undo](#alias-git-undo)
142+
* [Add object notes](#add-object-notes)
142143

143144
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
144145
<!-- @doxie.inject end toc -->
@@ -942,5 +943,10 @@ git rev-list --count <branch-name>
942943
git config --global alias.undo '!f() { git reset --hard $(git rev-parse --abbrev-ref HEAD)@{${1-1}}; }; f'
943944
```
944945

946+
## Add object notes
947+
```sh
948+
git notes add -m 'Note on the previous commit....'
949+
```
950+
945951
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
946952
<!-- @doxie.inject end -->

tips.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,4 +405,7 @@
405405
},{
406406
"title": "Alias: git undo",
407407
"tip": "git config --global alias.undo '!f() { git reset --hard $(git rev-parse --abbrev-ref HEAD)@{${1-1}}; }; f'"
408+
}, {
409+
"title": "Add object notes",
410+
"tip": "git notes add -m 'Note on the previous commit....'"
408411
}]

0 commit comments

Comments
 (0)