Git에서 변경사항을 저장(commit)하기 위해서는 사용자의 정보(이름, 이메일주소)가 필요한데,
Git은 config 파일로부터 사용자의 정보를 읽어 변경사항을 저장한다.
따라서 이미 등록된 작성자 정보를 변경하기 위해서는 config에 설정된 작성자 정보를 삭제한다음에 다시 등록하면 된다.
$ git config --unset user.name
$ git config --unset user.email
$ git config --unset --global user.name
$ git config --unset --global user.email
--global 뒤에 -all을 붙이면 된다.$ git config --unset-all user.name
$ git config --unset-all user.email
$ git config --unset-all --global user.name
$ git config --unset-all --global user.email
$ git config user.name "이름"
$ git config user.email "이메일주소"
$ git config --global user.name "이름"
$ git config --global user.email "이메일주소"
$ git config --list
또는
$ git config --global -l