git - 如何知道远程存储库中的所有项目?

标签 git ssh

有没有办法知道远程存储库中的git列表?如果我知道,我想从远程邮局下载所有项目。请假设远程存储库有

  • projectA.git
  • projectB.git
  • projectC.git

  • 现在我正在研究projectA.git,我不知道那里也有projectB.git和projectC.git。

    我可以从ssh://remoteMachine@xxx.x.xxx.xxx:xxx/data/repos/projects/projectA.git克隆或获取数据

    因此,我想查看其他网址,例如..
    ssh://remoteMachine@xxx.x.xxx.xxx:xxx/data/repos/projects/projectB.git ssh://remoteMachine@xxx.x.xxx.xxx:xxx/data/repos/projects/projectC.git
    有可能吗?

    最佳答案

    不仅是git,还需要一个前端专用应用程序来列出存储库。

  • gitweb附带了一个git发行版,它可以列出那些仓库。参见“Listing all repositories served by git-daemon
  • authorisation layer 之类的gitolite也将list the repos you have access to(带有 gitolite info )。

  • 注意:使用ssh ls假定可以访问交互式ssh,通常不建议这样做(因为您还可以执行其他命令,例如... rm)

    关于git - 如何知道远程存储库中的所有项目?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25637088/

    相关文章:

    docker - 单个 Docker 镜像

    git - 在保持 'as easy as svn' 的同时教 git

    git - 从 EC2 实例克隆 git 存储库时遇到问题

    Git 不忽略文件

    错误用户的 git ssh 权限被拒绝

    ssh - SFTP 仅读取/删除访问

    bash - 通过在脚本中修改/etc/ssh/sshd_config 来禁用 ssh root 登录?

    linux - 如何在现有的TCP连接上运行ssh

    windows - 上传大文件时出现WinSCP错误代码4

    git - 查找在分支中专门更改的文件