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"