If someone else wrote the code you are committing, you can give them credit with the --author option:
git commit -m "msg" --author "John Smith <
[email protected]>"
You can also provide a pattern, which Git will use to search for previous authors:
git commit -m &quo...