The `commit-msg` hook rejected your long, carefully written commit message, and you don't want to retype it.
BeginnerTroubleshootingSubmodules, LFS and Hooks
Answer
Likely causes → The message failed a convention check (Conventional Commits, ticket ID). The message you typed is saved in .git/COMMIT_EDITMSG.
Diagnose → cat .git/COMMIT_EDITMSG
Fix → Edit it and reuse it:
vim .git/COMMIT_EDITMSG # fix the subject, e.g. "feat(api): add retry"
git commit -F .git/COMMIT_EDITMSG
# or open it in the editor: git commit -e -F .git/COMMIT_EDITMSG
Prevent → Use a commit template (git config commit.template .gitmessage) that reminds you of the format.
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