Dev ops/Git

[Git] -CLI- how to log out git 깃허브 키체인 등록/삭제.

meencodewriter 2023. 7. 1. 00:02

Git


사용자 정보 검색

로그인된 유저 정보 확인

git config --list

사용자 설정 제거

유저 정보 설정제거

git config --global --unset user.name
git config --global --unset user.email
git config --global --unset credential.helper

모든 설정제거

git config --global --unset-all

키체인 삭제하기

terminal

git credential-osxkeychain erase
host=github.com
protocol=https

windows

cmdkey /delete:LegacyGeneric:target=git:https://github.com

 

 

user.email / user.name set

$ git config --global user.name "githubusername"
$ git config --global user.email "githubaccount@email.com"