簡體   English   中英

為什么在執行 git pull 以更新我的本地項目后,我無法訪問 gitlab 存儲庫?

[英]why I don't have access to gitlab repository after doing git pull to update my local project?

The team that I work for transferred the project from bitbucket to gitlab, so while I was working before the transfer, I didn't have any problem with bitbucket, I mean with the SSH key, I inserted on bitbucket the public key that I created用我的筆記本電腦,一切都很順利,所以我在做 git 拉、推、添加、提交……等等。 但是將項目轉移到git-lab后(我在git-lab上注冊了自己,被老板邀請加入項目,我把我的公鑰放在git-lab上),我做了git remote set-URL origin git@gitlab.com:...path.../file.git來更新我的原始項目,所以我沒有收到任何對此命令行的回復。 所以在那之后,當我做git pull時,我沒有訪問權限(權限被拒絕),我不明白為什么。 你可以看到下面的圖片。 這里有人知道為什么嗎? 謝謝在此處輸入圖像描述

您的原始路徑缺少您的存儲庫

正如@Daly 指出的那樣,您的來源 url git@gitlab.com沒有關於存儲庫的信息。 Your url should look something like this: git@gitlab.com:username/project-name.git You should log into gitlab and find the clone button, and click it. 它將列出您的存儲庫的來源 URL 為 ssh(在您的示例中使用)和 https。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM