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

前端 未结 14 1228
难免孤独
难免孤独 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:03

    Here you go! Very simple. Need to place the .txt file manually in the pwd mentioned folder...

    suumapat@SUUMAPAT-IN MINGW64 ~/newproject (master) $ git add abc.txt fatal: pathspec 'abc.txt' did not match any files

    suumapat@SUUMAPAT-IN MINGW64 ~/newproject (master) $ dir

    suumapat@SUUMAPAT-IN MINGW64 ~/newproject (master) $ pwd /c/Users/suumapat/newproject

    suumapat@SUUMAPAT-IN MINGW64 ~/newproject (master) $ dir abc.txt

    suumapat@SUUMAPAT-IN MINGW64 ~/newproject (master) $ git add abc.txt

提交回复
热议问题