diff --git a/README.md b/README.md index 0ec9b04..33b8688 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,7 @@ * [Reset: Discard commits, advised for private branch](https://github.com/git-tips/tips#reset-discard-commits-advised-for-private-branch) * [Reword the previous commit message](https://github.com/git-tips/tips#reword-the-previous-commit-message) * [Amend author.](https://github.com/git-tips/tips#amend-author) +* [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) * [Changing a remote's URL](https://github.com/git-tips/tips#changing-a-remotes-url) * [Get list of all remote references](https://github.com/git-tips/tips#get-list-of-all-remote-references) * [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 git commit --amend --author='Author Name ' ``` +## Reset author, after author has been changed in the global config. +```sh +git commit --amend --reset-author --no-edit +``` + ## Changing a remote's URL ```sh git remote set-url origin diff --git a/tips.json b/tips.json index a3eac82..1ce686c 100644 --- a/tips.json +++ b/tips.json @@ -88,6 +88,10 @@ "title": "Amend author.", "tip": "git commit --amend --author='Author Name '" }, + { + "title": "Reset author, after author has been changed in the global config.", + "tip": "git commit --amend --reset-author --no-edit" + }, { "title": "Changing a remote's URL", "tip": "git remote set-url origin "