How to force git to use authentication as author
- From
- J. Bakshi <joydeep@infoservices.in>
- Date
- Jul 14, 2011, 10:36 UTC
- Message-ID
- <20110714160638.065b6542@shiva.selfip.org>
Hello,
I have setup a git repo which is protected with user authentication set by apache it self.
<Location /git> AuthType Basic # Message to give to the committer AuthName "Write access requires a password" # File listing users with write (commit) access AuthUserFile /home/git/PASSWD Require valid-user </Location>
Now users are required to use their authentication as per /home/git/PASSWD file ( generated by htpasswd) . How can I force git to use the username as define at /home/git/PASSWD as the author name for git commit ?
Thanks