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

Re: Reporting Bug in Git Version Control System

From
Jakub Narębski <jnareb@gmail.com>
Date
Oct 31, 2016, 16:09 UTC
Message-ID
<fb358e96-02e3-e162-94a6-7cf20ee3f7cf@gmail.com>
In-Reply-To
<CAFZEwPNB1PX_NOaYzKr+rUKvbC9s5A1G58v5aS=sGdzPVsv4ww@mail.gmail.com>
W dniu 25.10.2016 o 10:51, Pranit Bauva pisze:
Show 14 quoted lines
> Hey Yash,
> 
> Junio has explained the problem very well. Since you seem to be a
> beginner (guessing purely by your email) I will tell you how to fix
> it.
> 
> Remember when you would have first installed git, you would have done
> something like `git config --global user.name <what ever name>` and
> `git config --global user.email <what ever email>`, it gets
> permanently stored in the git configuration file (~/.gitconfig). Now
> all the commits in git are made with this name and email. If you want
> to change this, again run the above commands with your new name and
> email. After that commits will be done with a different name and
> email. Hope this helps! :)

First, per user Git configuration doesn't necessarily go into ~/.gitconfig; it could be in ~/.config/git/config

Second, you can configure user.email and user.name with `git config` or `git config --local`. The information would go into .git/config for specific repository. This might be a better solution if you want different settings for different repositories.

-- 
Jakub Narębski
Previous: Pranit Bauva
Message 6 of 6 in “Reporting Bug in Git Version Control System”
  1. Yash JainOct 24, 2016
  2. Stefan BellerOct 24, 2016
  3. Junio C HamanoOct 24, 2016
  4. Junio C HamanoOct 24, 2016
  5. Pranit BauvaOct 25, 2016
  6. Jakub NarębskiOct 31, 2016

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.