Open GoogleCodeExporter opened 8 years ago
I've gotten around this with a script named 'gitc',
set -x
git commit --author 'My Name <me@gmail.com>' -m "$*"
Although this doesn't help 'git push', I'm less bothered by that.
Original comment by ayrn...@gmail.com
on 4 Mar 2012 at 3:30
I found a way that works perfectly for this; add these exports to your .bashrc
file:
export GIT_AUTHOR_NAME="John Doe"
export GIT_AUTHOR_EMAIL="john@doe.com"
You can also use GIT_COMMITTER_NAME/EMAIL. (Found this on
http://cheat.errtheblog.com/s/git, under the "Environment Variables" section
towards the bottom.)
I think this issue would still be worth looking into; it might be a more
general problem than just the git author name and email, and it might show
itself in other, more subtle/sinister ways.
(BTW - awesome program! I've been wanting something like this for ages!)
Original comment by matthewc...@gmail.com
on 8 Mar 2012 at 2:39
Thanks. That seems to work well. Though I would still like to know why it is
not reading from the configurations that is set. It reads it find when you use
git config but doesn't seem to read it when you are committing.
Original comment by duc...@gmail.com
on 17 Mar 2012 at 10:30
I just had to deal with this problem. By specifying the --author option, and
then my name (I did not include my email), it figured out who I was and
recorded my email with the commit. Luck I noticed, cause I might have broken my
47 day streak on github over it...
Original comment by andrew.g...@gmail.com
on 29 Mar 2013 at 6:34
#2 worked for me. Thanks!
I also found I had to deal with issue #21
(https://code.google.com/p/terminal-ide/issues/detail?id=21) regarding the
timezone not being set correctly in the commit log.
Original comment by goo...@mspacek.mm.st
on 18 Jan 2014 at 10:20
Original issue reported on code.google.com by
duc...@gmail.com
on 25 Feb 2012 at 5:20