註冊GitHub賬號
下載安裝Git 客戶端
打開Git Bash
輸入如下命令,並按回車
$ git config --global user.name "github用戶名"
$ git config --global user.email "github郵箱"
$ ssh-keygen -t rsa -C "github郵箱" //生成ssh key]
一直按回車,直到出現如下key’s randomart image
1、打開對應目錄下的id_rsa.pub(打開記事本直接拖入),全文複製
2、打開網頁github,現則settings / ssh and GPG keys
點擊 new ssh keys
title :隨便起
key:將剛剛從id_rsa.pub 複製得內容完全粘貼
3 、測試 Git 是否連接成功 Github
推薦閱讀: https://stormsha.com/article/2022/