최초 git 설정 시 마주치는 Username for 'https://github.com' 해결 법 (Mac / 맥북)

2022. 3. 20. 18:38IT관련

728x90
반응형

 

 


최초 git 설정 시 마주치는 Username for 'https://github.com' 해결 법

1. git config 설정

git config --global user.name "SsunLee"
git config --global user.email tnsqo1126@naver.com

여기서 user.name 이 어떤건지 확인하고 싶다면 
git 내설정 진입할 때 주소창에 보여지고 있는 닉네임을 입력하시면 됩니다.

제대로 추가되었는지 확인하려면 아래 명령어를 입력해 확인을 해봅니다.

vim ~/.gitconfig


아! 여기서 빠져나올 때는 ":" 를 누르고 q 를 눌러 빠져나오면 됩니다.

2. 만약 이런 내용이 떴다면
emote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.
remote: Please see https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ for more information.
fatal: Authentication failed for 'https://github.com/riiid/qa-automation.git/'


(1) github 를 접속합니다.

(2) Settings 를 진입합니다.

 

(3) developer settings 를 진입합니다.

(4) 우측의 Generate new token > 비밀번호 입력

 

모든 정보를 입력하고 체크 한 후에 저장을 하면 엑세스 토큰이 나옵니다.

 

이제 clone 을 다시 시도해서 Username 을 입력하고 

password  부분에 AccessToken 을 입력하면 됩니다.

 

 

 

 

 

728x90
반응형