openshift

Update Submodules — Git skill for Claude Code

Git community

Update the branches/ release submodules to the latest commit of their tracked.

How to install Update Submodules

Installs to ~/.claude/commands/openshift-lightspeed-console-update-submodules.md

Terminal
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/openshift/lightspeed-console/HEAD/.claude/commands/update-submodules.md -o ~/.claude/commands/openshift-lightspeed-console-update-submodules.md

Restart Claude Code, or start a new session, for it to be picked up.

What Update Submodules does

Update the `branches/` release submodules to the latest commit of their tracked branches.

The submodules are defined only on `main` (`.gitmodules` maps `branches/pf5` → `pattern-fly-5` and `branches/4-19` → `release-4.19`).

  1. Verify the working tree is clean. If it isn't, stop and report the dirty files so the user can decide what to do
  2. Check out main and make sure it's up to date (git checkout main)
  3. Create and switch to a branch named update-submodules (`git checkout -b upd

Alternatives in Git

  • Ws Reset — Reset the current branch to main, fetch upstream, and update submodules 38.1k ★
  • Clean Worktrees (Automatic) — Automatically remove all worktrees for branches merged into master 25.5k ★
  • Push And Release — Git pull, resolve conflicts, push, fix hook errors, then release 1.6k ★

Full documentation available on GitHub

View Source Repository