git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git-gui: Warn when username and e-mail address is unconfigured?

From
Alexander Gavrilov <angavrilov@gmail.com>
Date
Dec 5, 2008, 11:01 UTC
Message-ID
<bb6f213e0812050301t2f18061epfeff7bc74ee6f28a@mail.gmail.com>
In-Reply-To
<b9fd99020812041558w204e5f48gbed73fdbd289ad@mail.gmail.com>
On Fri, Dec 5, 2008 at 2:58 AM, Jeremy Ramer <jdramer@gmail.com> wrote:
Show 20 quoted lines
> Yes, that does appear to be the message I get, with the following
> environment variables:
> - GIT_AUTHOR_EMAIL
> - GIT_COMMITTER_NAME
> - GIT_COMMITER_EMAIL
> - GIT_AUTHOR_NAME
>
> Now that I look closer I see that I am setting these in my .bashrc
> file.  When I first started using git a year ago I was given the
> impression that these were needed. But I see that that is no longer
> the case since I use the config:
>
> git config --global user.name "Your Name"
> git config --global user.email "you@example.com"
>
> Removing them from my .bashrc removes the warning.  In hindsight the
> warning should have clued me in, but I've been seeing that message
> since I first started using git on Cygwin so I figured it was a cygwin
> issue that I couldn't do anything about.
>

I wonder if what the warning says is still true. It's 2 years since it was added, so the issue might have been fixed.

If you run "GIT_AUTHOR_NAME=foobar git gui", and make a commit, does it set the author name to 'foobar'?

Alexander
Previous: Jeremy RamerNext: Jeremy Ramer
Message 8 of 10 in “git-gui: Warn when username and e-mail address is unconfigured?”
  1. Peter KreftingDec 4, 2008
  2. Jeremy RamerDec 4, 2008
  3. Sverre RabbelierDec 4, 2008
  4. Jeremy RamerDec 4, 2008
  5. Alexander GavrilovDec 4, 2008
  6. Junio C HamanoDec 4, 2008
  7. Jeremy RamerDec 4, 2008
  8. Alexander GavrilovDec 5, 2008
  9. Jeremy RamerDec 5, 2008
  10. jidanni@jidanni.orgDec 12, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.