部署 React 時,遇到了這個錯誤訊息:
> git push -u origin master Permission denied (publickey). fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.
必須要先設定 SSH 連線才可以,參考官方文件
Generating a new SSH key and adding it to the ssh-agent
Checking for existing SSH keys
找到 Add new SSH keys 加上去就完成了。