Problem
- git push 명령 입력 시 아래 에러 메세지와 함께 실패
Cause
- 2021-08-13 부터는 github 인증시 password를 사용할 수 없다.
Solution
- github 에서 token을 발급받아 인증을 진행
Error message
Username for '<https://github.com/dewble/aws-ecs-study.git>': dewble
Password for '<https://dewble@github.com/dewble/aws-ecs-study.git>':
remote: Support for password authentication was removed on August 13, 2021.
remote: Please see <https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls> for information on currently recommended modes of authentication.
fatal: Authentication failed for '<https://github.com/dewble/aws-ecs-study.git/>'
token 저장
ghp_nUgXL7KqTro#중략
token 으로 인증 진행
- Password 부분에 위에 저장한 token을 입력한다.
$ git push
Username for '<https://github.com>': dewble
Password for '<https://dewble@github.com>':
cache 저장(Linux) - 계속 입력하지 않기 위함
git config --global credential.helper
cache 삭제(Linux)
git config --global --unset credential.helper