We have created a branch of our code on a testing server which multiple users are now working on by SSH'ing into the new server and doing all the committing with the command line. BUT, of course Git doesn't know whose making the changes and committing them, so we need to specify the author during the commit.
I thought we could achieve this with:
git commit -a -m 'removed temporary images' --author='deed02392 <foo@bar.net>'
But that gives:
[test-branch 77b9357] removed temporary image
Author: deed02392 <foo@bar.net>
Committer: root <root@vs123.(none)>
Your name and email address were configured automatically based on your username and hostname. Please check that they are accurate. You can suppress this message by setting them explicitly:
git config --global user.name "Your Name"
git config --global user.email you@example.com
If the identity used for this commit is wrong, you can fix it with:
git commit --amend --author='Your Name <you@example.com>'
1 files changed, 0 insertions(+), 0 deletions(-) delete mode 100644 derp.PNG
It seems too much to expect every user to change the config every time. Is this behaviour because Git is not designed to let multiple users play with one repository?