Merge pull request #84 from AndrewCvekl/master

Added another git command
This commit is contained in:
hemanth.hm 2016-06-14 09:40:04 +05:30 committed by GitHub
commit b6eba1acb0
2 changed files with 9 additions and 0 deletions

View File

@ -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)
@ -240,6 +241,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>'

View File

@ -64,6 +64,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>'"