We have a course repository in GitLab.
Every member has their own Git repository.
It seems like when one of the members have issues, they share their GitLab SSH URL git@organizationname:coursename/username1.git
, and someone will go to their repo and try to find the problem.
My question is, How can I check other people's repo on my machine?
I tried to add other people's ssh link remote and can see their remote when in check remote list (git remote -v
) but can see their repo.
CodePudding user response:
You do not connect directly to other user's repository.
You clone or pull from other people's repository from your GitLab, assuming the GitLab organization is setup to allow you to do that.
A course repository should come with instructions, like this one, on how to clone your course and contribute.
If it does not explain on how to check other user's code... that might be because it is not allowed.
At a minimum, you would need to be added as a collaborator by the user who want to share their own repository. Then you would be able to clone it.