Git 筆記2.5 Git "fatal: Could not read from remote repository."

當  git push -u origin main 時出現: fatal: Could not read from remote repository.

 

當我們在使用 git push -u origin main 時,結果出現了 Could not read from remote repository

把 SSH Key 添加到 Agent

ssh-add ~/.ssh/id_rsa
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_rsa

在一次把 SSH 放到 github

 

 

 

 

 

 

 

 

 

最後再檢查一次就好

ssh -T git@github.com