butiran

git submodules

· 1 min read · edit

notes

  • Updating a GitHub repository or simply a repo, which has submodules, still confuses me. Especially when to update the parent repo and when to update the subomdule. It is a little bit clearer after a discussion, where update submodule repo first then update the parent repo to point to the new submodule revision 1. The last update is not necessary after every first update, but after several first updates only to assure that the parent repo uses the new submodule revision.

refs


  1. GPT-5, “Submodule commit and push”, ChatGPT, 21 Nov 2025, url https://chatgpt.com/share/692189e7-a388-800a-9c79-5ac7d6e78cee [20251122]. ↩︎