将项目添加到 GitLab 上的组,现在 "cannot read from remote repository"
Added Project to Group on GitLab, now "cannot read from remote repository"
我刚刚将现有项目添加到 GitLab 上的新组;我应该如何更新我的本地存储库的详细信息以便我可以访问我的 GitLab 存储库?
那应该改变项目的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>
尝试 git ls-remote origin
检查是否正常。
我刚刚将现有项目添加到 GitLab 上的新组;我应该如何更新我的本地存储库的详细信息以便我可以访问我的 GitLab 存储库?
那应该改变项目的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>
尝试 git ls-remote origin
检查是否正常。