개발/개발 팁

[Git] VScode git 커밋 도중 오류 해결

t3nderex 2022. 6. 17. 17:17

VScode에서 처음 커밋을 시도할 때, 다음과 같은 에러가 발생하는 경우가 있다.

Git의 계정 설정이 제대로 되어 있지 않아서 발생하는 오류다.

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

 

다음과 같이 username과 email을 지정해준다.

 

git config --global user.name "[username]"
git config --global user.email "[abc@email.com]"

[그림 1] 예시