發(fā)現(xiàn)自己在服務端并沒有把公鑰加到.ssh/authorized_keys.
我嘗試著把pub秘鑰加入要文件中痢甘,不過發(fā)現(xiàn)加了后還是不能clone.
我過會想到了是自己沒有g(shù)it config配置用戶等步驟。
現(xiàn)在我要開始配置用戶了:
git config --global user.name "your account"
git config --global user.email "your email"
進過驗證,配置賬號和email后可以進行clone了帅霜,
這個時候需要輸入賬號密碼,就是你的gitlab賬號密碼
你也可以進行臨時緩存密碼
git config --global credential.helper cache
如果想一直保存密碼
git config credential.helper store
之后如果想上傳呼伸,那么需要先執(zhí)行remote操作
下期再續(xù)