Permission to [user.name]/nodejs_study.git denied to

등등 

push나 pull 시 github로 부터 인증이 되지않았을때 위와비슷한 에러가 발생한다.

 

내가 해결했던 방법은 아래와 같다.

 

1.제어판->사용자계정->자격 증명관리자

일반 자격 증명에 github관련 증명이 있는지 확인 있으면 제거를 해준다.

 

 

2.github 계정 로그인이후

프로필클릭->settings -> Developer settings -> Personal access tokens

settings

 

 

developer settings

 

Personal access token

 

3.키등록

note:단순히 메모라고 생각하면되고 일단 repository 권한만 체크하고 Generate token버튼을 클릭한다.

키발급

 

 

그러면 키값이 발급될것이고 이키값은 찾을 방법이 없으니  꼭 잃어버리지 않을만한곳에 메모 해놓자.

 

4.키로 로그인

(1)git remote가 없다면

git remote add [원하는 원격저장소 이름] https://[발급받은 키값]@github.com/[github계정이름]/[repo].git

 

(2)git remote가 이미 존재한다면

git remote set-url [저장된 원격저장소 이름] https://[발급받은 키값]@github.com/[github계정이름]/[repo].git

 

예시)

git remote add node_study https://aadsdawTIjgYtUs38oDhh@github.com/smdeveloper/nodejs_study.git

git remote set-url node_study https://aadsdawTIjgYtUs38oDhh@github.com/smdeveloper/nodejs_study.git

 

 

공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/05   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
글 보관함