-
Git Push 안되는 에러 (2021 년 8월 13일 이후 발생)IT관련 2021. 8. 17. 15:56반응형
에러 해결방법
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.2021년 8월 13일부터 비밀번호가 아닌 토큰으로 로그인을 해야한다고 합니다.
토큰생성방법은 깃허브에 로그인하시고 사진 따라하시면 됩니다.
토큰이 생성되었다면
푸쉬할때 비밀번호가 아닌 생성된 토큰을 입력하시면 됩니다.
스택오버플로우에서 운영체제별 해결방법을 적어놨습니다.
From August 13, 2021, Github is no longer accepting account passwords when authenticating Git operations. You need to add PAT (Personal Access Token) instead, you can follow the below method to add PFA on your system
Create Personal Access Token on Github
From your Github account, go to Settings => Developer Settings => Personal Access Token => Generate New Token (Give your password) => Fillup the form => click Generate token => Copy the generated Token, it will be something like ghp_sFhFsSHhTzMDreGRLjmks4Tzuzgthdvfsrta
Now follow below method based on your machine:
For Windows OS ⤴
Go to Credential Manager from Control Panel => Windows Credentials => find git:https://github.com => Edit => On Password replace with with your Github Personal Access Token => You are Done
For MAC OS ⤴
Click on the Spotlight icon (magnifying glass) on the right side of the menu bar. Type Keychain access then press the Enter key to launch the app => In Keychain Access, search for github.com => Find the internet password entry for github.com => Edit or delete the entry accordingly => You are done
For Linux based OS ⤴
For Linux, You need to configure the local GIT client with a username and email address,
$ git config --global user.name "your_github_username" $ git config --global user.email "your_github_email" $ git config -lOnce GIT is configured, we can begin using it to access GitHub. Example :
$ git clone https://github.com/YOUR-USERNAME/YOUR-REPOSITORY > Cloning into `Spoon-Knife`... $ Username for 'https://github.com' : username $ Password for 'https://github.com' : give your personal access token hereNow cache the given record in your computer to remembers the token :
$ git config --global credential.helper cacheIf needed, anytime you can delete the cache record by :
$ git config --global --unset credential.helper $ git config --system --unset credential.helperNow try to pull with -v to verify
$ git pull -v
For PHPStorm
If you are using PHPStrom goto menu Git => pull and select authentication via Personal Access Taken. Enter your PAT it will allow to pull/push the changes.
추가적으로 SourceTree 토큰 사용법입니다.
https://wktjs1212.tistory.com/21
TortoiseSVN 토큰 사용법입니다.
https://wktjs1212.tistory.com/22
반응형'IT관련' 카테고리의 다른 글
TortoiseSVN에서 Github 토큰 사용법 (0) 2021.08.18 SourceTree에서 GitHub 액세스 토큰 사용방법 (0) 2021.08.17 대용량 PDF파일 나누는 프로그램 ezPDF Editor (0) 2021.08.02 스타크래프트 게임 렉 현상 (노트북) (0) 2021.07.29 게임같은것 하면서 영상, 동영상 편하게 보자 (OnTopReplica) (0) 2021.07.27