From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Kelly Subject: Re: Wish: make commiter email address configurable per-repo Date: Fri, 07 Jan 2011 14:23:21 +0100 Message-ID: References: <201101071420.40570.trast@student.ethz.ch> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit To: git@vger.kernel.org X-From: git-owner@vger.kernel.org Fri Jan 07 14:23:41 2011 Return-path: Envelope-to: gcvg-git-2@lo.gmane.org Received: from vger.kernel.org ([209.132.180.67]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PbCI7-0007lI-Ut for gcvg-git-2@lo.gmane.org; Fri, 07 Jan 2011 14:23:40 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752855Ab1AGNXf (ORCPT ); Fri, 7 Jan 2011 08:23:35 -0500 Received: from lo.gmane.org ([80.91.229.12]:33923 "EHLO lo.gmane.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751899Ab1AGNXe (ORCPT ); Fri, 7 Jan 2011 08:23:34 -0500 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PbCI1-0007ir-Tg for git@vger.kernel.org; Fri, 07 Jan 2011 14:23:33 +0100 Received: from 188.111.54.34 ([188.111.54.34]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 07 Jan 2011 14:23:33 +0100 Received: from steveire by 188.111.54.34 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 07 Jan 2011 14:23:33 +0100 X-Injected-Via-Gmane: http://gmane.org/ Followup-To: gmane.comp.version-control.git X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 188.111.54.34 User-Agent: KNode/4.4.6 Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: Thomas Rast wrote: > Stephen Kelly wrote: >> 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?