简体   繁体   English

如何在许多git存储库中收集发布版本

[英]how to collect release version in lots of git repositories

I have lots of git repositories which are managed by repo . 我有很多由repo管理的git存储库。 I know the "repo start" and "git push" is a solution to record the version of all repositories. 我知道“repo start”和“git push”是记录所有存储库版本的解决方案。 But I don't want to see lots of branches or tags on all repositories. 但我不希望在所有存储库中看到许多分支或标记。 Especially, I want to check all of logs as time sorting even the log is on different git so that I can track every changes easily, and without "git log" one by one. 特别是,我想检查所有日志作为时间排序,即使日志在不同的git上,这样我可以轻松地跟踪每个更改,并且没有“git log”逐个。 Are there any tools help me? 有什么工具可以帮助我吗?

========== ==========

After a half day for research … I find the repo manifest -r maybe a solution. 经过半天的研究......我发现repo manifest -r也许是解决方案。 This command outputs a manifest.xml by recording SHA1 of each git repository. 此命令通过记录每个git存储库的SHA1来输出manifest.xml。 I use this routine: 我用这个例程:

cd .repo/manifests
repo manifest -r -o default2.xml
cp default2.xml default.xml
git commit -am "Release manifest.xml"

After committing a repository is done, do this routine once. 提交存储库完成后,执行此例程一次。 Is there better method than this? 有比这更好的方法吗?

===================================== =====================================

I draw a diagram to explain my question. 我画了一个图来解释我的问题。

在git存储库中发布版本

Is there any tool to manage these released versions? 是否有任何工具来管理这些发布的版本? I would like switch among release not only a single git.So far, I only find the command repo manifest -r to do this job. 我想在发布之间切换不仅仅是一个git。到目前为止,我只找到命令repo manifest -r来完成这项工作。 What are the key words to find this kinds of requirement? 找到这种要求的关键词是什么?

我不确定repo是如何工作的,但是如果你正在寻找一些以递归方式对包含git存储库的目录运行git命令的东西 - 试试rgit

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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