In brief
git commit records staged contents with a change message. In ordinary branch-based work, the current branch advances to the new commit.
Useful to know
git commit records staged contents with a change message. In ordinary branch-based work, the current branch advances to the new commit. [1]
It does not automatically send data to a remote repository or update the live site. Review, push and deployment remain separate actions. Write a message explaining the resulting behaviour to the next reader rather than merely saying several files changed.
Sources
For further detail and to check the information: