git change user of last commit

C++
git commit --amend --author="John Doe <[email protected]>"
Source

Also in C++: