티스토리 뷰

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: unable to access

-> 2021.8.13일부터 비밀번호 인증이 없어지고 토큰이나 ssh로 인증을 해야하기 때문에 발생하는 오류

 

해결 방법

 

1. GitHub에서 Personal Access Token 생성하기 -> 토큰 저장 필수!

https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token

 

Creating a personal access token - GitHub Docs

Note: If you use GitHub CLI to authenticate to GitHub on the command line, you can skip generating a personal access token and authenticate via the web browser instead. For more information about authenticating with GitHub CLI, see gh auth login. Personal

docs.github.com

 

2. GitHub 자격 증명 토큰 설정하기 (윈도우)

https://velog.io/@rimo09/Github-%EC%9C%88%EB%8F%84%EC%9A%B0-git-credential-access-token-%EC%A0%81%EC%9A%A9%ED%95%98%EA%B8%B0

 

[Github] 윈도우 git credential - access token 적용하기

8월 13일 부터 깃헙의 비밀번호 방식 인증이 사라지고, personal access token을 이용해야 한다는 메세지였다.

velog.io

3. git push할 때 아래 명령어로 입력

$ git push https://{token}@github.com/{username}/{repo_name}.git

 

매번 token 입력하기 귀찮기 때문에 gitconfig 설정을 해준다.

 

1. git bash를 관리자 권한으로 실행

2. 아래 명령어 입력 -> credential 정보 삭제하기

$ git config --global --unset credential.helper

3. git push 하면 뜨는 창에 이름, 비밀번호 입력

- 비밀번호에 Personal Access Token 입력하기

4. 이후에는 git push만으로 잘 됨!!

 

remote: No anonymous write access

-> 권한이 없어서 발생하는 오류

 

해결방법 -> 해당 파일의 권한 변경해주기 

 

1. 해당 파일의 [속성] - [보안] - [편집] - 권한 수정

ex) .gitconfig 파일의 사용자 권한을 모든 권한으로 바꿔주기

공지사항
최근에 올라온 글
«   2024/04   »
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
글 보관함