본문 바로가기

IT TIP/프로그램 TIP

[github] git commit -m 후 Author identity unknown 가 뜨면

git을 설치한 후 

git init
git add .
git commit -m "~~~~~"

commit을 하고 나니 이런 메시지가 떴습니다.

 

Author identity unknown

*** please tell me who you are.

 

Run

     git config --global user.email "you@example.com"

     git config --global user.name "Your name"

 

to set your account's default identity.

Omit --global to set the identity only in this repository.

 

fatal: unable to auto-detect email address (got '~~~')

 

 

 

 

이럴 때 해결 방법은 메시지에 나와 있듯이 '이메일'과 '이름'을 입력하면 됩니다.

 

 git config --global user.email "깃허브 이메일"
 git config --global user.name "깃허브 이름"

 

 

 

다시 commit 하니 잘 실행됩니다. 

 


이 포스팅은 쿠팡 파트너스 활동의 일환으로, 이에 따른 일정액의 수수료를 제공받습니다.