To change the author of a commit, use git commit --author :
git commit -m "A commit with a different author" --author="Your name here < yourEmailHere@includeTheAngleBrackets.com >"
To change the commit date, use git commit --date="YYYY-MM-DD HH:MMxm :
git commit -m "A commit made to celebrate Christmas" --date="2015-12-25 12:00am"
These parameters can be combined:
git commit -m "Ho ho ho" --author="Santa Claus < santa@northpole.org >" --date="2015-12-25 12:00am"
The git merge command has no parameters --author and --date . To change the date and author of a merge command, first merge regularly:
git merge other_branch
Then, until the merge git commit --amend has been created, you can use git commit --amend before clicking to change the merge metadata:
git commit
Kevin
source share