특정 Repository의 Git 계정 정보를 변경하기 위한 과정에서, 아래 내용을 정리했습니다.
전체 Repository와 특정 Repository의 Git 계정 정보를 확인하고 변경하는 방법을 알아보겠습니다.
Repository $
Repository $ git init
Repository $ git config --global --list
Repository $ git config --global user.name "계정 이름"
Repository $ git config --global user.email "계정 이메일"
명령어 작성 후, git config --global --list 확인 시, 전체 Repository의 git 계정 정보가 변경된 것을 확인할 수 있습니다.
Repository $
Repository $ git init
계정 정보가 해당 명령어로 확인되지 않는다면, --global로 설정되어 있을 가능성이 높습니다.
Repository $ git config --local --list
Repository $ git config --local user.name "계정 이름"
Repository $ git config --local user.email "계정 이메일"
명령어 작성 후, git config --local --list 확인 시, 특정 Repository의 git 계정 정보가 변경된 것을 확인할 수 있습니다.