에러가 길지만 정리하면 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
'개발도구 > Git' 카테고리의 다른 글
Git commit 시간 변경하기 (0) | 2022.01.17 |
---|---|
Git 협업 할 때 branch 생성 후 pull request까지의 과정 (0) | 2022.01.14 |
Git Remote Origin Head Master 차이 (0) | 2022.01.13 |
Git GUI Client Sourcetree 사용법 (0) | 2022.01.13 |
Windows11(윈도우11) git 설치하기 (0) | 2021.12.20 |
댓글