Why did my git user.name and user.email mysteriously get deleted?

Viewed 2961

I tried checking in my code tonight in Visual Studio Code and saw this message.

enter image description here

I first staged my changes then hit "Commit" like I always do!

QUESTION 1 - Why would these values be suddenly gone?

FYI - I noticed a VS Code update when I started this morning. I can't image why a VS Code update would remove these values!

QUESTION 2 - I can configure them again with values, but it's been so long since I initially did it, do these two values need to be the same as my username/password on github.com?

1 Answers

I do not think that VSC has removed these values from the config file, maybe you only had it configured in a local repository, check your global configuration file to apply your username and email in all your repositories

git config --global -l

No, this data is what defines your identity in your commits, they have no relationship with the credentials of your remote repository

source: https://git-scm.com/book/en/v2/Getting-Started-First-Time-Git-Setup

Related