Skip to content

Are atomic multi-repositories pushes possible? #120704

Discussion options

You must be logged in to vote

As of my last update, there isn't a built-in mechanism in Git or GitHub to perform atomic transactions across multiple repositories. Git’s atomic operations generally apply to actions within a single repository, such as updating multiple refs in one push to that repository.

When dealing with multiple repositories (multi-repo or poly-repo), atomicity becomes more complex because each repository has its own commit history and ref namespace. Here are some considerations and potential workarounds:

  1. Submodules/Subtrees: If you want to keep repositories in sync, you could consider using Git submodules or subtrees, which allow one repository to include content from another. However, this doesn'…

Replies: 1 comment 2 replies

This comment was marked as spam.

@xmo-odoo
Comment options

@Akash1134
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Repositories The core of version-controlled code storage Question
3 participants