I have a remote machine where multiple developers work on the same repository. We use gitolite and SSH keys to manage git access.
As for now we code on the local machines, commit, push, pull remotely and test. It works, but is time consuming and annoying.
If we edit code on remote repo, we can commit and push, forwarding agent gives correct access rights to repository, but still name and email is the one configured on the server.
Tried setting up environment variables:
But it still uses data from git config. If I unset those, git complains about that during commit.
Is there a way to configure email and name independently for each user, eg. through ssh keys passed by forwarding agent?
A nasty workaround is to mount remote directory locally and then commit on local machine. Nasty and takes ages.