본문 바로가기
개발도구/Git

Sourcetree 토큰 에러

by eeeun:) 2022. 1. 13.
반응형

에러가 길지만 정리하면 git 토큰을 설정 안 해서 생긴 에러이다!

더보기

Pushing to https://github.com/komskoms/OhJiHwan_CAN_OBD.git
remote: 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/komskoms/OhJiHwan_CAN_OBD.git/'
Pushing to https://github.com/komskoms/OhJiHwan_CAN_OBD.git
remote: 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/komskoms/OhJiHwan_CAN_OBD.git/'
Pushing to https://github.com/komskoms/OhJiHwan_CAN_OBD.git
remote: 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/komskoms/OhJiHwan_CAN_OBD.git/'
Pushing to https://github.com/komskoms/OhJiHwan_CAN_OBD.git
remote: 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/komskoms/OhJiHwan_CAN_OBD.git/'
Completed with errors, see above

 

해결법

github에서 토큰을 발급 받는다

github 홈페이지에서 왼쪽 상단의 버튼을 클릭 후 Settings 클릭!

Developer settings 클릭!

Personal access tokens에 들어가 왼쪽 상단의 generate new token를 클릭해 토큰을 생성

생성된 토큰은 다시 볼 수 없으니, 복사해서 잘 저장해두기!!!

 

 

sourcetree에서 왼쪽 상단의 설정을 클릭!

경로를 밑의 형태로 바꿔서 저장해주면 에러 해결 성공!!

https://<USERNAME>:<TOKEN>@<GIT_URL>.git

 

728x90

댓글