GitHub Organization에서 팀 Repository에 대해 Owner 권한을 가지고 있음에도 불구하고, push 작업이 정상적으로 수행되지 않는 문제가 발생하고 있다.
'Log in via GitHub' 버튼을 클릭해 인증을 완료했음에도 불구하고, 여전히 git push가 정상적으로 이루어지지 않고 있다.
Push failed remote: Permission to <username>/<repo>.git denied to jiyeon0926.
unable to access 'https://github.com/<username>/<repo>.git/': The requested URL returned error: 403
remote: Invalid username or password. Authentication failed for 'https://github.com/<username>/<repo>.git/'
먼저 Personal Access Token을 생성하고, 발급된 토큰은 추후 사용을 위해 따로 저장한다.
토큰을 직접 URL에 포함시켜 인증한다.
인증이 완료되면 push가 정상적으로 수행된다.
$ git remote set-url origin https://<토큰>@github.com/<username>/<repo>.git