git
git --version
git config --global user.name DokBak
git config --global user.email photoismylife0216@gmail.com
git config --list
cat ~/.ssh/id_rsa.pub
SSH 키가 없는 경우 : cat 명령어가 출력된다. : No such file pr directory
SSH 키가 있는 경우 : ssh-rsa 정보가 출력된다.
ssh-keygen
입력 값 1 : 저장할 파일의 이름 입력 / 엔터키를 눌러서 디폴트[is_rsa]로 생성
입력 값 2 : 키의 비밀번호를 입력 / 엔터키를 눌러서 비밀번호 없이 키를 생성
SSH 키를 생성하였기에 ssh-rsa 정보가 출력된다.
pbcopy < ~/.ssh/id_rsa.pub
Github에 로그인 후 「Settings」 메뉴
「SSH and GPG keys」 메뉴
복사한 SSH 등록