How to remove git account from local computer and add new account

I have a github account that is configured on my windows machine. Now I have created a new Github account and want to use a new one.

How to delete my old account from my windows computer and add a new github account?

NOTE: I edited the gitconfig file and added a new email address and username. But the public key still contains the user's old email.

+4
source share
2 answers

For windows machine

you can manage windows credentials for this

go to the search button and then write

Windows

, Windows

, git git,

github id

.gitconfig

C:\Users\Imu

imu -

.gitconfig , nodepad ++ ur

,

+10

2:

, SSH . , , . - . , .

:

Bash, .gitconfig , . ( Bash) "~/.gitconfig".

:.

nano ~/.gitconfig

, , , .

Edit:

, :

git config {--global|--system|--local} --edit

, , , , Bash, . .

{--global|--system|--local}

. , . , ( , ), .

P.S.: , . , .

+1

Source: https://habr.com/ru/post/1675454/


All Articles