fatal: Authentication failed for 'https://github.com/...

Jintae Kim·2023년 9월 15일
0

github 의 계정정보가 바뀌거나 작업 노트북이 바뀌거나 했을때 제목과 같이 push 가 안되는 경우가 있다. 새로운 인증정보를 갱신해야 한다.

방법1:

git config user.name 바뀐유저네임
git config user.email 바뀐이메일
git push

방법2:

  • github 에 먼저 로그인한 후 https://github.com/settings/tokens 로 접속하여 필요한 권한 체크하고 token 을 새로 발급받는다.
  • 토큰값 ghp_xxxxxxxx 을 복사해 둔다.
  • 그리고 아래와 같이 다시 시도
git remote set-url origin https://ghp_xxxxxxxx@github.com/username/repo_name.git
git push
profile
공부하고 또 공부하고 또 공부하고

0개의 댓글

Powered by GraphCDN, the GraphQL CDN