Git

[Git] username과 email 설정

떵호 2022. 11. 11. 17:38
728x90

같은 로컬 환경에서 회사 리포지토리와 개인 리포지토리를 사용할 때 username과 email 설정이 필요하다.

자주 쓰는 username, email 설정 (글로벌 설정)

$ git config --global user.name {"git username"}
$ git config --global user.email {git email}

위 명령어를 수행하면 로컬에 존재하는 모든 repository에 username, email이 설정된다.

단일 repository username, email 설정

$ git config user.name {"git username"}
$ git config user.email {git email}

위 명령어를 수행하면 로컬에 해당 repository에만 username, email이 설정된다.

728x90