목표

git config --global에 대해 알아보고 초기 세팅을 해보

 

what is it?

내 pc에서 Git 저장소를 사용할 때 Commit User 정보를 전역 설정하여 사용할 수 있다.

 

user name, email 등록

// name 등록
git config --global user.name <name>

ex) git config --global user.name dongyeop00

// email 등록
git config --global user.email <email>

ex) git config --global user.email dongyeop00@naver.com

 

user name, email 삭제

// user 삭제
git config --unset --global user.name

// email 삭제
git config --unset --global user.email

 

user name, email 조회

git config --global --list

 

 

'Github' 카테고리의 다른 글

Git - branch 명령어 정리  (0) 2024.07.31
Git - 브랜치, 커밋 전략  (0) 2024.07.31