if you are in the current directory, add ./ to the front of the path;
git commit -m 'my notes' ./path/to/my/file.ext
git commit -o path/to/myfile -m "the message"
commit single file in git:
$ git commit -m "Message goes here" file_name
example:
$ git commit -m "Pushing Only Single file to git" name.txt
git commit -m 'my notes' path/to/my/file.ext
#Best way to do it is by adding selected files and then committing it
#Use git status to see file list
git status
#Copy path of your desired file and do this
git add [paste_file_path]
#Do it again & again until you have added all the files you want to commit
#Then simply commit with a message
git commit -m "Type_your_message_here"
git push origin [branch_name]
git commit [some files]