Git Submodules: Adding, Using, Removing, Updating

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • flow-bot

    A bot to sync a public repo which is a folder in a (mono)repo.

  • Oh yeah, submodules can bite. At my previous job, we tried open-sourcing a part of our monorepo using them, which resulted in a clunky workflow. So we whipped up a syncing bot integrating with GitHub that would propagate changes both ways: https://github.com/WorksHub/flow-bot

  • pandorabox-mods

    Pandorabox meta repository

  • Despite all the comments saying to avoid submodules i can only recommend them.

    I'm using them in several of my game servers as a "meta-repo" that points to other git repositories (for exmaple here: https://github.com/pandorabox-io/pandorabox-mods)

    It makes updating, finding/fixing bugs and testing much easier (we are using github's dependabot to update and kick off initial tests)

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • imgui

    Dear ImGui: Bloat-free Graphical User interface for C++ with minimal dependencies

  • I want to use Dear ImGui [1] in a C++ project. Sure I can copy the relevant files into my repo by hand, but my instinct says that is not the way. Git submodule seems like the right tool, but there's plenty of comments here advising not to use it. So if not git-submodule, then what is the procedure?

    I just want to have the external repo as a subfolder in my own repo, updating that subfolder as updates become available.

    [1] https://github.com/ocornut/imgui

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts