From 321da85d47a1a64c374c3996f784519e6bceb640 Mon Sep 17 00:00:00 2001 From: "Hemanth.HM" Date: Sun, 17 Jan 2016 22:12:36 +0530 Subject: [PATCH] ammed author --- README.md | 6 ++++++ tips.json | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/README.md b/README.md index b4010a3..0ec9b04 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,7 @@ * [Revert: Undo a commit by creating a new commit](https://github.com/git-tips/tips#revert-undo-a-commit-by-creating-a-new-commit) * [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) * [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) @@ -192,6 +193,11 @@ git reset git commit -v --amend ``` +## Amend author. +```sh +git commit --amend --author='Author Name ' +``` + ## Changing a remote's URL ```sh git remote set-url origin diff --git a/tips.json b/tips.json index a568a28..a3eac82 100644 --- a/tips.json +++ b/tips.json @@ -84,6 +84,10 @@ "title": "Reword the previous commit message", "tip": "git commit -v --amend" }, + { + "title": "Amend author.", + "tip": "git commit --amend --author='Author Name '" + }, { "title": "Changing a remote's URL", "tip": "git remote set-url origin "