How to commit files?
git commit -m 'commit message'
To commit files use
git commit -m 'commit message', which creates a new commit with the changes in your staging area, using the commit message defined with parameter -m.
Changes not in your staging area won't be commited or changed.
On branch main
Changes to be committed:
(use "git restore --staged
..." to unstage)
git commit -m 'Changes in code and README'
[main c335861] Changes in code and README
2 files changed, 2 insertions(+)
See git commit to learn more about it.