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 24
24
* [ Revert: Undo a commit by creating a new commit] ( https://github.com/git-tips/tips#revert-undo-a-commit-by-creating-a-new-commit )
25
25
* [ Reset: Discard commits, advised for private branch] ( https://github.com/git-tips/tips#reset-discard-commits-advised-for-private-branch )
26
26
* [ 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 )
27
28
* [ Changing a remote's URL] ( https://github.com/git-tips/tips#changing-a-remotes-url )
28
29
* [ Get list of all remote references] ( https://github.com/git-tips/tips#get-list-of-all-remote-references )
29
30
* [ 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>
192
193
git commit -v --amend
193
194
```
194
195
196
+ ## Amend author.
197
+ ``` sh
198
+ git commit --amend --author=' Author Name <email@address.com>'
199
+ ```
200
+
195
201
## Changing a remote's URL
196
202
``` sh
197
203
git remote set-url origin < URL>
Original file line number Diff line number Diff line change 84
84
"title" : " Reword the previous commit message" ,
85
85
"tip" : " git commit -v --amend"
86
86
},
87
+ {
88
+ "title" : " Amend author." ,
89
+ "tip" : " git commit --amend --author='Author Name <email@address.com>'"
90
+ },
87
91
{
88
92
"title" : " Changing a remote's URL" ,
89
93
"tip" : " git remote set-url origin <URL>"
You can’t perform that action at this time.
0 commit comments