remote: No anonymous write access.

하람·2024년 3월 3일

문제 상황

$ git push
remote: No anonymous write access.
fatal: Authentication failed for ...

액세스 토큰이 만료돼서 git push가 안되는 상황이었다.

해결방법

$ git remote -v

origin  https://github.com/your_user/your_project.git (fetch)
origin  https://github.com/your_user/your_project.git (push)

git remote -v를 통해 위와같은 결과를 볼 수 있을 것이다.

git remote set-url origin https://YOUR_TOKEN_HERE@github.com/your_user/your_project.git

위 코드로 액세스 토큰을 다시 적용해주면 해결!

profile
강하고 담대하라 두려워하지 말라

0개의 댓글