mirror of
https://github.com/namibia/tips.git
synced 2025-01-23 15:18:29 +00:00
Added another git command
This commit is contained in:
parent
1cf1673f05
commit
15698a4e20
@ -26,6 +26,7 @@ P.S: All these commands are tested on `git version 2.7.4 (Apple Git-66)`.
|
||||
* [Revert: Undo a commit by creating a new commit](#revert-undo-a-commit-by-creating-a-new-commit)
|
||||
* [Reset: Discard commits, advised for private branch](#reset-discard-commits-advised-for-private-branch)
|
||||
* [Reword the previous commit message](#reword-the-previous-commit-message)
|
||||
* [See commit history for just the current branch](#see-commit-history-for-just-the-current-branch)
|
||||
* [Amend author.](#amend-author)
|
||||
* [Reset author, after author has been changed in the global config.](#reset-author-after-author-has-been-changed-in-the-global-config)
|
||||
* [Changing a remote's URL](#changing-a-remotes-url)
|
||||
@ -229,6 +230,11 @@ git reset <commit-ish>
|
||||
git commit -v --amend
|
||||
```
|
||||
|
||||
## See commit history for just the current branch
|
||||
```sh
|
||||
git cherry -v master
|
||||
```
|
||||
|
||||
## Amend author.
|
||||
```sh
|
||||
git commit --amend --author='Author Name <email@address.com>'
|
||||
|
@ -62,6 +62,9 @@
|
||||
}, {
|
||||
"title": "Reword the previous commit message",
|
||||
"tip": "git commit -v --amend"
|
||||
}, {
|
||||
"title": "See commit history for just the current branch",
|
||||
"tip": "git cherry -v master"
|
||||
}, {
|
||||
"title": "Amend author.",
|
||||
"tip": "git commit --amend --author='Author Name <email@address.com>'"
|
||||
|
Loading…
x
Reference in New Issue
Block a user