To change an account registered in git

Asked 2 years ago, Updated 2 years ago, 39 views

I am using git in Windows using gitbash.
When you try push on github

At first, you ask for an ID and password After that, I no longer asked if the information was stored in local.

I want to change the information of the account stored in the local

Can you tell me how to do it?

git github

2022-09-21 20:35

1 Answers

git config --global user.name "name"
git config --global user.email "email"

If you want to make changes in just one project,

git config --local user.name "Name"
git config --local user.email "email"

For other settings, check https://git-scm.com/book/ko/v1/Git%EB%A7%9E%EC%B6%A4-Git-%EC%84%A4%EC%A0%95%ED%95%98%EA%B8%B0 here.


2022-09-21 20:35

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.