작성
·
5.8K
3
커밋 명령 치니까 Author identity unknown 나오네요.
검색해보니 이메일과 이름 같은 거 config 같은거 하라고 나오는데 먼저 해야하나요?
C:\Users\Cardcastle\Coding\test>git commit -m "project init"
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 'Cardcastle@DESKTOP-xxxxxx.(none)')
C:\Users\Cardcastle\Coding\test>git log
fatal: your current branch 'master' does not have any commits yet
답변 2
3
안녕하세요, 카드캐슬CardCastle님!
깃이 설치가 되지 않아서 에러 메세지가 발생한 것 같습니다.
git config --global user.name "user name"
git config --global user.email "user@inflearn.com"
위의 명령어를 입력해주시면 질문자분 계정이 등록될 것입니다.
큰 따옴표("") 안의 내용은 질문자님의 계정으로 바꾸어서 입력해주세요.
해당 명령어를 입력한 후에 커밋 명령어를 입력하시면 정상 작동되실 것입니다.
혹시 다른 문제가 있다면 댓글 남겨주세요.
도움이 되었으면 좋겠습니다. :)
0
아래 명령어를 입력해주시면 될 것 같습니다.
git config --global user.email "github 이메일 주소"
git config --global user.name "github 유저명"
현지님 답변 감사합니다 😁