mirror of
https://github.com/namibia/tips.git
synced 2025-01-05 15:12:18 +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)
|
* [Revert: Reverting an entire merge](#revert-reverting-an-entire-merge)
|
||||||
* [Number of commits in a branch](#number-of-commits-in-a-branch)
|
* [Number of commits in a branch](#number-of-commits-in-a-branch)
|
||||||
* [Alias: git undo](#alias-git-undo)
|
* [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>. -->
|
<!-- 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 -->
|
<!-- @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'
|
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>. -->
|
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
|
||||||
<!-- @doxie.inject end -->
|
<!-- @doxie.inject end -->
|
||||||
|
@ -405,4 +405,7 @@
|
|||||||
},{
|
},{
|
||||||
"title": "Alias: git undo",
|
"title": "Alias: git undo",
|
||||||
"tip": "git config --global alias.undo '!f() { git reset --hard $(git rev-parse --abbrev-ref HEAD)@{${1-1}}; }; f'"
|
"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....'"
|
||||||
}]
|
}]
|
||||||
|
Loading…
Reference in New Issue
Block a user