git add one file to commit code example
Example 1: git add file to last commit
git add the_left_out_file
git commit --amend --no-edit
Example 2: how to add one more file to my previous commit
git commit --amend
git add the_left_out_file
git commit --amend --no-edit
git commit --amend