`git status` keeps showing `modified: libs/common (new commits)` even though you never touched it.
BeginnerTroubleshootingSubmodules, LFS and Hooks
Answer
Likely causes → The submodule's checked-out commit differs from what the superproject records. Typically you pulled the parent (which bumped the gitlink) without updating submodules, or someone ran git pull inside the submodule.
Diagnose →
git diff --submodule=log libs/common
git submodule status
Fix → To match the parent: git submodule update --init libs/common. If you really want the new submodule commit, commit the bump: git add libs/common && git commit -m "Bump common to v1.4.0".
Prevent → submodule.recurse=true and status.submoduleSummary=true make this visible and automatic.
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.`IntermediateYou 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`.IntermediateRe-adding a removed submodule fails: `A git directory for 'libs/common' is found locally with remote(s): origin https://github.com/org/common.git`.Advanced