Re: Wish: make commiter email address configurable per-repo
Show 6 quoted lines
> 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.)
--
Thomas Rast
trast@{inf,student}.ethz.ch