简体   繁体   中英

Is it possible to get remote git repo's info without fetching it first?

I'm trying to get various information (such as author, last committer, last commit msg, etc) from a list of remote git repos using Ruby. So far I can find two gems for the task, Grit and Ruby-git, and Ruby-git seems to be better at handling remote repos.

However, I am wondering if it is possible to get such information without fetching each of the repo first? The list I'm working on can get very long, thus fetching all of them doesn't seem to be a feasible choice.

This is not a perfect solution; but it will at least reduce the amount of data being transferred if you are only interested in the latest history.

git clone --no-checkout --depth=1 <repository>

(adapt to Ruby as needed)

对于任意的回购,没有,但是编写挂钩可以很容易地将报表保存在专用标签上 - 示例挂钩发送电子邮件,这是一个很容易的改变。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM