I have setup Git on our production and staging server and it's working well, however upon doing a git pull
on the staging server it seemed to set the group owner name to the user I was logged into under SSH, which was root.
Is there anyway to get it to set the group name to another name without having to log in as that particular user?
You can add under root keys for the desired user's.
Since the authentication is done via ssh you cannot "fake" it to be different user. (assuming you are not trying to hack the system).
That's the point of using SSH - to verify the one who initiated the action.
chmod
:If you will do a chmod it can be tracked as change as well if you have set mode flag.
git config core.fileMode false
core.fileMode
Iffalse
, the executable bit differences between the index and the working copy are ignored; useful on broken filesystems like FAT.
True by default.
git ssh
Read more about how it works here