Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I browse Git repositories on a server?

Tags:

git

I was told to clone the repository bar with this command:

git clone git@server:foo/bar

I know that there are other repositories under server:foo (e.g server:foo/dummy, server:foo/ihategit, server:foo/xxx and so on). I have permission to access these repositories, but I don't know their names.

Is there a way to list all the repositories under server:foo?

like image 689
lornova Avatar asked Sep 01 '14 13:09

lornova


People also ask

How do I explore a git repository?

The command you want is git ls-remote which allows you to get some information about remote repositories, but you cant show history or list directories or anything of that level: essentially it only lets you see the remote objects at a very high-level (you can see the current HEADs and tags for example).

How do I see all git repositories?

You can search globally across all of GitHub, or scope your search to a particular repository or organization. To search globally across all of GitHub, type what you're looking for into the search field at the top of any page, and choose "All GitHub" in the search drop-down menu.

How do I set up a git repository on another server?

Assuming that /srv/git exists on that server, you can set up your new repository by copying your bare repository over: At this point, other users who have SSH-based read access to the /srv/git directory on that server can clone your repository by running:

How to List A GIT repository without cloning it?

The Stack Overflow post Browse Git repository without cloning may help you. If you want to list a remote repository without having to clone it locally, you'll need to connect through SSH in order to access it from the server: Show activity on this post.

How do I check out a git repository in Visual Studio?

To do that in Visual Studio, first make sure to fetch and get the latest updates from your remote repository. Then right click on the remote branch you would like to review and select Checkout Tip Commit . To continue your journey, see Manage Git repositories in Visual Studio.

What are the sections of a git repository?

The Git Repository window contains three main sections, as numbered in the preceding screenshot: Branches: Git empowers users to multitask and experiment with their code through branches. If you're working on multiple features at the same time or if you want to explore ideas without affecting your working code, branching can be helpful.


2 Answers

The Stack Overflow post Browse Git repository without cloning may help you. If you want to list a remote repository without having to clone it locally, you'll need to connect through SSH in order to access it from the server:

like image 142
Joël Salamin Avatar answered Sep 18 '22 23:09

Joël Salamin


It seems like you want to view the collection of that "users" repositories.

On GitHub, for example, this is similar to going to https://github.com/foo?tab=repositories

It will depend on which interface the server is using and whether or not they implement a view that is similar to GitHub's. GitLab by default has no such view, has a similar view, for example: https://gitlab.com/gitlab-org would have a view of all repositories that you have access to. (If the server were Bitbucket and the user were foo, then https://bitbucket.org/foo.)

In the case of a private server, this answer may shed more light.

like image 36
vgoff Avatar answered Sep 18 '22 23:09

vgoff