TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: Submodules done right – a better way to manage modular Git projects

2 pointsby Dm_Linovover 3 years ago

1 comment

Dm_Linovover 3 years ago
Git X-Modules is a server-side app that syncs your project directories with other repositories. Think of it as a server-side alternative to Git Submodules.<p>Use Cases:<p>- Combine multiple projects and components into a single repository for cross-project development (like a monorepo, but keeping the original repositories up and running)<p>- Include parts of other projects into yours<p>- Share common assets across multiple projects<p>How it works:<p>- An X-Module is a regular directory. It’s synced on your Git server with an external repository.<p>- When an X-Module is updated the changes go to the external repository.<p>- When an external repository is updated the changes are applied to the X-Module.<p>- When there are two conflicting updates Git X-Modules applies one update and turns the other into a pull request<p>This tool is available as a free GitHub app. There&#x27;s also an app for Bitbucket DataCenter (self-hosted).<p>Some of the real-life cases we&#x27;ve heard of:<p>- Code review team wants to see all changes made in various repositories, in one place<p>- A private project contains an open-source part, that is shared in a separate repository<p>- A library or component is maintained in a separate repository and shared between several projects<p>What&#x27;s your case?