gpt4 book ai didi

deployment - 远程 : The project you were looking for could not be found or you don't have permission to view it

转载 作者:行者123 更新时间:2023-12-05 09:02:44 24 4
gpt4 key购买 nike

我在尝试通过 gitlab 部署我的分支时遇到此错误。

remote: The project you were looking for could not be found or you don't have permission to view it.
fatal: repository 'https://gitlab.com/[group_name]/[repo_name].git/' not found
error: Could not fetch origin

最佳答案

我设法解决了我的问题。如果您遇到同样的问题,请按照以下步骤操作:

  • 重命名您的旧远程跟踪:

git remote rename origin old_origin

  • 添加新 Remote :

git remote add origin https://[gitlab_username]@gitlab.com/[group_name]/[repo_name].git

  • 您可能还必须将默认 Remote 设置为 origin :

git config --add checkout.defaultRemote origin

  • 最后,如果需要,您可以删除 old_origin(可选)。

关于deployment - 远程 : The project you were looking for could not be found or you don't have permission to view it,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/70983600/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com