[Git 오류] Make sure you configure your 'user.name' and 'user.email' in git
Dev/Bug + Error

[Git 오류] Make sure you configure your 'user.name' and 'user.email' in git

문제 상황

VS Code에서 git과 Github 연동 시 파일을 commit 할 때

 

Make sure you configure your 'user.name' and 'user.email' in git

라는 오류가 뜸.

Commit을 할 때 필요한 사용자 정보 설정을 하지 않아서 발생하는 오류.

 

해결 방법

$ git config --global user.name "사용자이름" 
$ git config --global user.email "사용자메일주소"

 

프로젝트마다 다른 이름/메일 주소를 사용하고 싶다면 --global 옵션을 빼고 실행하면 됨.

728x90