Fatal: pathspec 'file.txt' did not match any files, GIT

前端 未结 14 1203
难免孤独
难免孤独 2021-02-04 11:59

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         


        
14条回答
  •  醉话见心
    2021-02-04 12:05

    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"
    

提交回复
热议问题