remote 브랜치에 내가 생성한 브랜치를 Push 하려고 했으나 위와 같은 문제를 접하였다.
이를 해결하기 위해서는 다음과 같다.
1) 이전 자격 증명 삭제
git credential-osxkeychain erase http://github.com
2) github에서 로그인하고 settings > Developer Settings
3) Personal access tokens에서 class 버전으로 토큰 발급
4) 터미널에서 git remote set-url origin https://{발급받은 token명}@github.com/{git 레포지터리 이름}
으로 403 에러를 해결할 수 있었다.
참고자료
'git' 카테고리의 다른 글
error: src refspec 브랜치 이름 does not match any (0) | 2023.11.24 |
---|---|
error: pathspec 'feature/wallet' did not match any file(s) known to git (0) | 2023.11.14 |
Git Commit Message Style (0) | 2023.11.10 |
revert commit 했는데 다시 rever commit 할 경우 (0) | 2023.10.26 |
병합(merge) 충돌 되돌리고 다시 merge 하기 (2) | 2023.10.18 |