Skip to content

Commit 321da85

Browse files
committed
ammed author
1 parent 3c31eac commit 321da85

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
* [Revert: Undo a commit by creating a new commit](https://github.com/git-tips/tips#revert-undo-a-commit-by-creating-a-new-commit)
2525
* [Reset: Discard commits, advised for private branch](https://github.com/git-tips/tips#reset-discard-commits-advised-for-private-branch)
2626
* [Reword the previous commit message](https://github.com/git-tips/tips#reword-the-previous-commit-message)
27+
* [Amend author.](https://github.com/git-tips/tips#amend-author)
2728
* [Changing a remote's URL](https://github.com/git-tips/tips#changing-a-remotes-url)
2829
* [Get list of all remote references](https://github.com/git-tips/tips#get-list-of-all-remote-references)
2930
* [Get list of all local and remote branches](https://github.com/git-tips/tips#get-list-of-all-local-and-remote-branches)
@@ -192,6 +193,11 @@ git reset <commit-ish>
192193
git commit -v --amend
193194
```
194195

196+
## Amend author.
197+
```sh
198+
git commit --amend --author='Author Name <email@address.com>'
199+
```
200+
195201
## Changing a remote's URL
196202
```sh
197203
git remote set-url origin <URL>

tips.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,10 @@
8484
"title": "Reword the previous commit message",
8585
"tip": "git commit -v --amend"
8686
},
87+
{
88+
"title": "Amend author.",
89+
"tip": "git commit --amend --author='Author Name <email@address.com>'"
90+
},
8791
{
8892
"title": "Changing a remote's URL",
8993
"tip": "git remote set-url origin <URL>"

0 commit comments

Comments
 (0)