使用Android Studio一次标记多个存储库的任何方法? [英] Any way to tag multiple repos at once with Android Studio?

查看:75
本文介绍了使用Android Studio一次标记多个存储库的任何方法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的项目有几个git repos,它可以正常工作,我可以提交,推送,分支就可以了,但是我希望能够同时标记所有它们. Android Studio有可能吗?

I have several git repos for my project, and it works ok, I can commit, push, branch just fine, but I would like to be able to tag all of them at the same time. Is that possible with Android Studio?

谢谢.

推荐答案

一个选项是

One option is setting up a multi-rooted project, but there does not seem to be an option (Version Control | Git) to execute tag operations on all roots.

另一种选择是拥有一个父存储库,其中所有工作存储库都为父存储库可用于标记所有子模块子模块(虽然从命令行)

Another option would be to have one parent repository with all your working repos as submodules: Android Studio would only work with them as you do currently, but the parent repo can be used to tag all submodules (from command-line though)

所以:

  • 保持当前设置不变
  • 有一个单独的父仓库的克隆,将您的项目作为子模块:您可以在一个命令中刷新它们,并且每当您需要发布时,都可以从该单独的目录结构中为它们添加标签.
  • keep your current setup unchanged
  • have a separate clone of a parent repo referencing your projects as submodule: you can refresh them in one command, and tag them from that separate directory structure whenever you need to make a release.

这篇关于使用Android Studio一次标记多个存储库的任何方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆