mirror of
https://github.com/namibia/tips.git
synced 2025-01-03 14:17:28 +00:00
git-notes
This commit is contained in:
parent
dca76041d8
commit
9007100789
@ -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)
|
||||
|
||||
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
|
||||
<!-- @doxie.inject end toc -->
|
||||
@ -942,5 +943,10 @@ git rev-list --count <branch-name>
|
||||
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....'
|
||||
```
|
||||
|
||||
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
|
||||
<!-- @doxie.inject end -->
|
||||
|
Loading…
Reference in New Issue
Block a user