Hello,

that depends on how you are doing your pushes. In a HTTP scenario, it
depends on the authentication mechanism. With a multi user SSH scenario,
I'd bet on the $USER env. variable. With single user (like with Gitolite)
you have to look in the documentation of your software.

Best,
Gergely
On 12 Dec 2014 00:11, "Gaurav Negi" <gaurav.n...@gmail.com> wrote:

> Hi,
>    I want to get user name in a server side GIT hook, esp udpate.
> So that update hook based on user info can take some actions.
>
> Can I know how can I get the user name in server side hooks? My hooks are
> written in bash.
> User name I mean, the user id who is pushing his change to remote.
>
> Thanks
> -Gaurav
>
> --
> You received this message because you are subscribed to the Google Groups
> "Git for human beings" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to git-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to