I have just started learing GIT. Follow their tutorial.
Now at the very beginning I got stuck with this error:
Fatal: pathspec \'file.txt\' did not match
I had the same issue as well. Please confirm your file directory. After moving my file to the correct directory it works.