I'm creating a web-based PHP client for managing site content with Git. I want to associate commits with the various people that are logged in the admin panel. I know I can do this with:
git commit --message="foo" --author="John Doe <john@example.com>"
However, you can also push to a remote repository (in my case, hosted on GitHub) through the admin panel as well. I can't seem to set the name/email of the committer with something like:
git push origin master --author="John Doe <john@example.com>"
...so in GitHub, the author is John Doe, but the committer is me:
I noticed that the committer is based on the Git config. So I can change it and get the correct result:
My question is, do I need to do this:
git config user.name {{ panel user name }}
git config user.email {{ panel user email }}
git push origin master
...every time someone pushes to the repo, or there's a better way? I like how you can specify the author in git commit. Can this somehow be achieved with git push as well?

