개발 | Dev |/깃 | Git

Git Config 확인

bugi6 2024. 2. 1. 13:35

Git Config 확인

git config --list

또는

git config -l

 

계정 설정 방법

전역 Global 설정

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

로컬 Local/Repository 설정

git config --local user.name "USER_NAME"
git config --local user.email "USER_EMAIL"

 

설정된 계정 삭제

전역 Global

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

로컬(Repository)

git config --unset user.name
git config --unset user.email