Skip to content

Commit 2ce80d7

Browse files
committed
Reset author
1 parent 321da85 commit 2ce80d7

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
@@ -25,6 +25,7 @@
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)
2727
* [Amend author.](https://github.com/git-tips/tips#amend-author)
28+
* [Reset author, after author has been changed in the global config.](https://github.com/git-tips/tips#reset-author-after-author-has-been-changed-in-the-global-config)
2829
* [Changing a remote's URL](https://github.com/git-tips/tips#changing-a-remotes-url)
2930
* [Get list of all remote references](https://github.com/git-tips/tips#get-list-of-all-remote-references)
3031
* [Get list of all local and remote branches](https://github.com/git-tips/tips#get-list-of-all-local-and-remote-branches)
@@ -198,6 +199,11 @@ git commit -v --amend
198199
git commit --amend --author='Author Name <email@address.com>'
199200
```
200201

202+
## Reset author, after author has been changed in the global config.
203+
```sh
204+
git commit --amend --reset-author --no-edit
205+
```
206+
201207
## Changing a remote's URL
202208
```sh
203209
git remote set-url origin <URL>

tips.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,10 @@
8888
"title": "Amend author.",
8989
"tip": "git commit --amend --author='Author Name <email@address.com>'"
9090
},
91+
{
92+
"title": "Reset author, after author has been changed in the global config.",
93+
"tip": "git commit --amend --reset-author --no-edit"
94+
},
9195
{
9296
"title": "Changing a remote's URL",
9397
"tip": "git remote set-url origin <URL>"

0 commit comments

Comments
 (0)