github 의 계정정보가 바뀌거나 작업 노트북이 바뀌거나 했을때 제목과 같이 push 가 안되는 경우가 있다. 새로운 인증정보를 갱신해야 한다.
방법1:
git config user.name 바뀐유저네임
git config user.email 바뀐이메일
git push
방법2:
git remote set-url origin https://ghp_xxxxxxxx@github.com/username/repo_name.git
git push