user2636464
user2636464

Reputation: 735

Tagging multiple git repositories

I have 3 git repositories for a project. I want to create a release label. is it possible to tag multiple git repos together to specify a particular release?

Upvotes: 5

Views: 4288

Answers (1)

MikeAttack
MikeAttack

Reputation: 51

You might be able to achieve this using git submodules.

  1. Create a single master repo which should define all your git repos as submodule.
  2. Once defined as submodule you can check out the appropriate commit from your individual repos.
  3. Once all repos are aligned correctly, you create a commit in the top directory. That will defacto be your cross-repo label.

The master repo can otherwise be empty of files.

More details here: https://git-scm.com/book/en/v2/Git-Tools-Submodules

Upvotes: 3

Related Questions