Re: How to force git to use authentication as author
- From
- J. Bakshi <joydeep@infoservices.in>
- Date
- Jul 14, 2011, 10:48 UTC
- Message-ID
- <20110714161838.1e30893a@shiva.selfip.org>
- In-Reply-To
- <CACBZZX4X8qRBXqwi70kZ0eZ+mb7rdD6p36xD=GoX6soha0TZcg@mail.gmail.com>
On Thu, 14 Jul 2011 12:38:59 +0200 Ævar Arnfjörð Bjarmason <avarab@gmail.com> wrote:
Show 9 quoted lines
> On Thu, Jul 14, 2011 at 12:36, J. Bakshi <joydeep@infoservices.in> wrote: > > > How can I force git to use the username as define at /home/git/PASSWD as the author name for git commit ? > > Edit the global bashrc to have: > > export GIT_AUTHOR_NAME=$(cat ~/PASSWD) > > ?
Thanks.
[1] will it work with file generated by htpasswd ? as that file is actually created by same (/home/git/PASSWD)
[2] And the commit is over http, So is it effective to set the value by .bashrc ?