본문 바로가기

IT

git user name, email 변경하기

반응형

commit 시 반영되는 user name, email 을 변경할 수 있습니다.

글로벌 설정을 변경하면 모든 git repository 에 대해서 적용되며, clone 한 git repository 폴더에서 개별 설정할 수 도 있습니다.

 

1. 전체 git repository 에 대한 글로벌 설정으로 user name, email 설정

 

git config --global user.name "dante2k"

 

위의 명령어로 user name 을 설정할 수 있습니다.

 

git config --global user.email "dante2k@email.com"

 

위의 명령어로 user email 을 설정할 수 있습니다.

 

2. 단일 git repository 에 대한 설정으로 user name, email 설정

설정을 원하는 git 프로젝트의 root 디렉토리로 이동합니다.

 

git config user.name "dante2k"

 

위의 명령어로 단일 git 프로젝트에 적용할 user name 을 설정할 수 있습니다.

 

git config user.email "dante2k@email.com"

 

위의 명령어로 단일 git 프로젝트에 적용할 user email 을 설정할 수 있습니다.

 

감사합니다.

반응형