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
This error is raised because the file you are adding to the repository is not created. First create the file and then add it to the staging area:
touch filename git add filename