我有一個Ubuntu 18.0.4
虛擬機,我想將我的程式碼推送到我在 gitlab 中建立的 git。
我已經做了什麼
- 安裝git
- 建立了 ssh 金鑰
- 將我的 ssh 金鑰新增至 gitlab
- 在gitlab中建立儲存庫
- git初始化
- git 遠端新增來源 the_git_link
- 須藤 git add .
- sudo git commit -m “msg”
我黏的東西
- sudo git Push 起源大師
來自 Ubuntu 終端機的錯誤訊息
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.