먼저
$ git config -l
로 현재 사용하고 있는 계정 확인
$ cd ~/.ssh
$ ls -al
ssh-keygen -t rsa -C "회사아이디@회사메일.com" -f "id_rsa_회사아이디"
ssh-keygen -t rsa -C "개인아이디@개인메일.com" -f "id_rsa_개인아이디"
$ pbcopy < ~/.ssh/id_rsa_회사아이디.pub
$ code ~/.ssh/id_rsa_회사아이디.pub
$ pbcopy < ~/.ssh/id_rsa_개인아이디.pub
$ code ~/.ssh/id_rsa_개인아이디.pub
ssh-key 등록

$ cd ~/.ssh/config
$ vi config
$ ssh -T git@회사깃주소-회사아이디
$ ssh -T git@깃헙주소-개인아이디
This key is not known by any other names
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Hi @@@! You've successfully authenticated, but GitHub does not provide shell access.
확인 시
git config user.name
git config user.email
'이것저것' 카테고리의 다른 글
작업 중 폴더 bitbucket에 git 하기 (0) | 2020.02.12 |
---|---|
$npm -v -bash: npm: command not found (0) | 2020.02.12 |
터미널에서 code. 으로 vscode열기 (0) | 2020.01.07 |