capabilities.work

Update a submodule reference

One step with GitLab. We can help you get access.

Get something done

Update a submodule reference

with GitLab
Works with AI assistants

Use GitLab: its GitLab REST Submodules API lets you update a submodule reference in a single step (PUT /api/v4/projects/{id}/repository/submodules/{submodule}). GitLab also has an MCP server, so an AI assistant like Claude or ChatGPT can do it for you. capabilities.work can help you get signed up and connected.

  • How do I point a submodule at a new commit?
  • Can I change a submodule to a different branch?
Say it to your AI assistant
  • Update submodule {submodule} in project {id} to commit {commit_sha} on branch {branch}.
  • Point submodule {submodule} of {id} at {commit_sha} on {branch} with message {commit_message}.
For your developer

PUT /api/v4/projects/{id}/repository/submodules/{submodule} in GitLab REST Submodules API. Full spec on APIs.io.