Thursday, 12 January 2012

GIT User error after re-installing windows

if you have reinstalled your computer and found after GIT setup first publish that your username is showing as unknown you might need the following steps to correct the issue.

Did you try to set the user name with the following commands:
// global settings
$ git config --global user.name "FirstName LastName"
$ git config --global user.email "user@example.com"
or
// for a specific project
$ git config user.name "FirstName LastName"
$ git config user.email "user@example.com"

Edit: global settings are stored in the folder designated by the HOME environment variables, which should be unique for each Windows user, so you will have real data about the logged in user.

No comments:

Post a Comment