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
?
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).
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.
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:
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.
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.
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.
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:
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With