git push origin main
이렇게 push를 하려고 하니
Permission to my_repo.git denied to my_githup_username. fatal: unable to access 'https://github.com/my_githup_username/my_repo.git/': The requested URL returned error: 403
위와 같은 error가 나왔다. 해결법은 간단하다.
git remote set-url {remote_name} https://{my_githup_username}@github.com/{my_githup_username}/{my_repo}.git
이렇게 remote를 추가해주는 명령어를 입력하면 브라우저에서 github에 login하는 창이 나오는데 로그인 후 다시 push를 하면 해결된다.

