How can I delete a user detail in GIT (visual studio code)?

Hi, I have set user details on my git using those commnads :

  • Open terminal
  • git config --global fadoua  
  • git config --global  

I want now to delete that user now, how can I do that in Visual Studio code and Git Thanks.

Asked by:- LuneAgile
: 1939 At:- 11/30/2018 10:17:48 AM
Visual-Studio Git delete-user

2 Answers
profileImage Answered by:- LuneAgile

Hi, Finally I have found the solution to my problem :  

Basically, git checks .config file at couple of places like user config file(~/.gitconfig), local repo's config file (.git/config) and system specific config.

Alternatively, You can check and verify the location from where configuration is stored or picked from.

git config --global --show-origin


In my case I needed to delete the user and email so I will use those commands :

git config --global --unset-all

git config --global --unset-all

At:- 12/5/2018 9:47:31 AM

profileImage Answered by:- bhanu

You can also manually delete credentials

As the git credentials are saved in the control panel

Navigate to Control Panel -> User Accounts -> Credential Manager -> Windows Credential Manager -> erase the GitHub credentials.

At:- 11/15/2021 7:03:32 AM

Login/Register to answer
Register directly by posting answer/details

Full Name *

Email *

By posting your answer you agree on privacy policy & terms of use