ssh 사용으로 인증 절차 건너뛰기
- 터미널에서 깃 푸쉬 할 때 인증 절차를 건너뛰기 위해 ssh 연동을 추가
- SSH 키 생성
- ssh-keygen -t ed25519 -C "your-email@example.com"
- 이메일 주소 대신 유저명 입력 해도 됨
- SSH 키 복사
- cat ~/.ssh/id_ed25519.pub
- 출력 내용 전체 복사
- GitHub에 SSH 키 등록
- https://github.com/settings/keys
- "New SSH key" → 복사한 내용 붙여넣기
- remote URL을 SSH로 변
- git remote set-url origin git@github.com:johnmayerbass/notionBlog.git
- PUSH
- git push origin main