GitHub auth , github credential, 깃허브 인증 관리

 

//-----------------------------------------------------------------------------

gh (GitHub-Cli) 설치 방법

> scoop install gh
"C:\Users\userID\scoop\apps\gh\2.48.0\bin\gh.exe" 에 설치됨


> winget install GitHub.cli
"C:\Program Files\GitHub CLI\gh.exe" 에 설치됨

//-----------------------------------------------------------------------------
현재 설정되어 있는 git 인증 확인 방법
    - gh = GutHub-Cli

     - github 인증 상태 확인
gh auth status

     - github 새 인증 설정
gh auth login
     선택 : GitHub.com -> HTTPS -> Paste an authentication token



//-----------------------------------------------------------------------------
GitHub "Select an account" 팝업 창의 계정 리스트 관리


* 자격증명관리자 열기
제어판 -> 자격 증명 관리자 -> Windows 자격 증명
> control /name Microsoft.CredentialManager

     - 현재 등록된 자격증명 리스트 확인
cmdkey /list:git*




//-----------------------------------------------------------------------------
github 에서 소스가져오기(git clone) 에러 해결 방법
https://codens.tistory.com/2446

//-------------------------------------
     - 에러 메시지
 fatal: Could not read from remote repository. git@github.com: Permission denied (publickey).

//-----------------------------------------------------------------------------
     - 해결 방법 1 : 토큰 입력

$ sudo apt install gh
$ gh auth login

https 로그인 선택

   - 토큰 정보
https://github.com/settings/tokens

토큰 권한 : 'repo', 'read:org', 'workflow'

 

//-----------------------------------------------------------------------------

VSCode 에서 Github Copilot 확장 사용방법(로그인)

Github Copilot Chat 확장을 설치하고 확장을 선택하면 Sign In 버튼이 보인다.

Sign In 버튼을 누르면 브라우저로 Github에 로그인을 요구하고 성공하면 그 후로 Copilot 기능을 사용할 수 있다.

 

 

반응형
Posted by codens