
github 개인 token이 만료되어 위와 같은 에러가 뜹니다.
해결하시려면 github 왼쪽 상단 프로필 -> Settings -> Developer settings -> Personal access tokens
fine-grained personal access tokens와 Tokens(classic) 이 있을 텐데 github 문서에 따르면 fine-grained personal access tokens 가 여러 보안적인 장점이 있어서 더 추천한다고 합니다.
token을 발급 받은 후에 아래와 같이 command 입력하시면 해결됩니다.
git remote remove origin
git remote add origin https://{nickname}:{token}@github.com/reprository 주소
개인용 액세스 토큰 만들기 - GitHub Docs
Warning: Treat your access tokens like passwords. To access GitHub from the command line, consider using GitHub CLI or Git Credential Manager instead of creating a personal access token. When using a personal access token in a script, consider storing your
docs.github.com
https://learn.microsoft.com/en-us/windows/wsl/tutorials/wsl-git
Get started using Git on WSL
Learn how to set up Git for version control on the Windows Subsystem for Linux, along with Git Credential Manager.
learn.microsoft.com
'GIT' 카테고리의 다른 글
git push origin master 에러 발생하는 이유 (0) | 2020.09.08 |
---|