本文介绍了git - 浏览远程回购的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我可以看到:



这是关于在远程回购浏览分支。不过,我认为这是一个更好的ssh脚本解决方案,因为您需要能够ssh到机器并列出某个目录中的所有git仓库。



如果您在侦听器(ssh)之间有一个中间层,和你的回购,像 ,那么你可以调用特殊的gitolite命令以便获得所有可用的回购(您有权查看)。



例如,

浏览他们的内容,你需要一个Apache或一个。


Is it possible to browse all the remote repos available on a given server?

I've seen this:

Git - Browse remote repository

which is about browsing branches in a remote repo. However, I'm assuming this is more of an ssh scripting solution as you need to be able to ssh to the machine and list all the git repos in a certain directory.

解决方案

No, git alone would not offer that kind of feature.

If you have an intermediate layer between the listener (ssh) and your repo, like gitolite, then you can call special gitolite commands in order to get all the repos available (that you are authorized to see).

For instance, the info command

To browse their content, you would need an Apache or a CGit server.

这篇关于git - 浏览远程回购的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-05 16:57
查看更多