티스토리 뷰
Backend/꾸준히 TIL
git cli 명령어 에러 해결 - remote: Support for password authentication was removed on
개발하는 후딘 2022. 7. 7. 00:46728x90
반응형
[문제내용]
$ git push -u origin main
Username for 'https://github.com': Eun-Kang-Choi
Password for 'https://Eun-Kang-Choi@github.com':
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/eunkangchoi/eunkangchoi.github.io.git/'
[해결방법]
커맨드로 git 을 사용할 경우에는 토큰이 필요하다는 내용 입니다.
2021년 8월 13일 이후로, 개발자 개인계정에서 커맨드로 git을 사용하려면 개인별 인증토큰 이 필요합니다.
특히 HTTP 로 클론한 래포지토리에 관련해서, 해당 프로젝트의 파일을 관리 및 변경할 때는 인증토큰이 필요합니다.
Note 는 빈값으로 두면안된다, 필자의 경우에는 'ek-auth'로 합니다. (사용자 정의입니다.)
필자는 Expiration은 'No Expiration' 을 선택했습니다.
필자의 경우 Select scopes 영역은 repo, workflow, gist, notification 등 전부 다 체크했습니다.
그리고 맨아래 Generate token을 클릭합니다.
토큰이 발급되며, 발급받은 토큰을 복사합니다.
git config 로 유저정보를 입력합니다.
$ git config --global user.name "username"
$ git config --global user.email "user@example.com"
커밋하려는 래포지토리로 이동하여 커밋과 푸시명령어를 치면, Username 과 Password 입력을 요구합니다.
Username 은 github 아이디를
Password 는 복사한 토큰값을 붙여넣으면 됩니다.
[참고]
첫번째 링크는 github 에서 personal access token 발급 다큐먼트 입니다.
728x90
반응형
'Backend > 꾸준히 TIL' 카테고리의 다른 글
jekyll 에러 해결하기 - It looks like you don't have jekyll-paginate or one of its dependencies installed... (0) | 2022.07.09 |
---|---|
jekyll new 명령어에서 conflict가 일어났을 때 (0) | 2022.07.08 |
jekyll 설치 오류 You don't have write permissions for the /Library/Ruby/Gems/2.6.0 directory. (0) | 2022.07.06 |
git Commit, Push, Pull 명령어 (0) | 2022.06.13 |
git config (0) | 2022.06.12 |
반응형
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- nestjs jest
- 클린아키텍쳐
- 한달독서
- 습관개선
- 나도 할 수 있다
- TDD
- 참고
- 바이트디그리
- MySQL
- 디지털디톡스
- Mongoose
- IT용어
- 갓생살자
- 한달어스
- jest
- MongoDB
- 개발용어
- node.js
- typeORM
- 미완
- RDBMS
- git
- OS
- vscode
- 스마트폰중독
- Jekyll
- Nest.js
- gem
- nestjs
- TypeScript
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
글 보관함