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
Use double quotes in the file name as shown below and it should work perfectly.
Error:
fatal: pathspec 'index.html' did not match any files
Solution:
git add "file_name"