There is no key step in your workflow: adding changes before they are implemented.
Before using git commit , run git add -A to add all the files to the working directory in the git repository. Alternatively, you can use git add <path-to-file> to add a specific file, or use git commit -a to add all the changes to the git repository. Note, however, that git commit -a will not add new files, it will simply add the changes you made to existing files.
If you want to see where you are, enter git status . Red files change, non-stationary ("setting" the change is equivalent to "adding"), while green files are added. If git status says "the working directory is clean", then you have not made any changes since the last commit.
Benno source share