将项目添加到GitLab上的组中,现在为;“无法从远程存储库读取”;

将项目添加到GitLab上的组中,现在为;“无法从远程存储库读取”;,gitlab,Gitlab,我刚刚在GitLab的一个新组中添加了一个现有项目;我应该如何更新本地存储库的详细信息以便访问我的GitLab repo?这将更改项目的url: cd /path/to/local/repo git remote set-url origin https://<gitlab.server>/<group>/<project> # or, if you are using ssh, assuming user git: git remote set-url or

我刚刚在GitLab的一个新组中添加了一个现有项目;我应该如何更新本地存储库的详细信息以便访问我的GitLab repo?

这将更改项目的url:

cd /path/to/local/repo
git remote set-url origin https://<gitlab.server>/<group>/<project>
# or, if you are using ssh, assuming user git:
git remote set-url origin git@<gitlab.server>:<group>/<project>
cd/path/to/local/repo
git远程设置url源https:////
#或者,如果您使用的是ssh,则假设用户git:
git远程设置url源git@:/
请尝试使用
git ls远程源
检查此功能是否正常工作