Thread (1 message) 1 message, 1 author, 2016-06-15

Re: Wish: make commiter email address configurable per-repo

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:50:26

Stephen Kelly [off-list ref] writes:
Thomas Rast wrote:
quoted
Stephen Kelly wrote:
quoted
So for some git repos in KDE which I work on on work time, I'd like to
set a different committer address. I can't just set GIT_COMMITTER_EMAIL
or whatever in my bashrc, because in other repos I want to use a
different committer email, and don't want it set globally for all git
repos I work on.

This doesn't seem to be configurable in git config. Can that be changed?
See user.email in git-config(1).  Most people set it globally, as in

  git config --global user.email "author@example.com"

but there's nothing stopping you from doing

  git config user.email "alias@example.com"

to set it on a per-repo level.  (Or just edit .git/config, of course.)
Doesn't this set both the author and the committer?
And the reason why that is a bad thing is...?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help