Lint and secret-scan hooks exist, yet broken code and a leaked key landed on `main`.
IntermediateTroubleshootingSubmodules, LFS and Hooks
Answer
Likely causes → Client-side hooks are optional: anyone can skip them with git commit --no-verify, never install them, or edit via the GitHub web UI.
Diagnose → Find the commits and check whether they went through a PR with checks: gh pr list --state merged --search <sha>.
Fix → Move enforcement server-side: required status checks (lint, tests, secret scan) in branch protection or rulesets, "Require a pull request before merging", and GitHub secret scanning push protection. Rotate the leaked key immediately.
Prevent → Treat local hooks as a fast feedback loop and CI plus rulesets as the gate.
More on Submodules, LFS and Hooks
`fatal: No url found for submodule path 'libs/common' in .gitmodules`IntermediateAfter cloning, the submodule directories exist but are empty.Beginner`git submodule update` fails: `fatal: remote error: upload-pack: not our ref 3f2a9c1...` and `Fetched in submodule path 'libs/common', but it did not contain 3f2a9c1. Direct fetching of that commit failed.`Intermediate`git status` keeps showing `modified: libs/common (new commits)` even though you never touched it.BeginnerYou committed inside a submodule, ran `git submodule update`, and your commits vanished.Intermediate`git submodule add` fails with `fatal: 'libs/common' already exists in the index`.Intermediate