mingg IT

[GIT] git push No anonymous write access. 에러 해결법 본문

git

[GIT] git push No anonymous write access. 에러 해결법

mingg123 2021. 11. 28. 16:30

git push하려는데 No anonymous write access. 에러가 발생했다.

 

git config --list에서 username, useremail모두 이상이 없는데 왜이러나 싶어서 구글해보다가 해결법을 찾았다.

우선 토큰 방법에 대해서는 

 

Git Hub 홈페이지 -> Settings-> Developer settings -> Personal access tokens 를 선택.

깃 헙 토큰 생성 

 

이후 Generate new token을 클릭해서 토큰을 생성한다. 

 

난 이미 만들어 놓은게 있기 때문에 그대로 사용하도록 하겠음. 

 

1. git remote set-url origin https://{토큰}@github.com/{깃허브이름}/{repost이름}.git

 

ex)

https://토큰토큰토큰@github.com/mingg123/WishList.git

 

2. git push

 

push 성공!

 

 

Comments