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 "FirstName LastName"
$ git config --global ""
// for a specific project
$ git config "FirstName LastName"
$ git config ""

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