File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 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>
192193git 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
197203git remote set-url origin < URL>
Original file line number Diff line number Diff line change 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>"
You can’t perform that action at this time.
0 commit comments