$ git add hello.txt fatal: pathspec 'hello.txt' did not match any files
$ git add hello.txt
fatal: pathspec 'hello.txt' did not match any files
出现上述错误,解决方法:在文件夹下自己先建一个.txt文件,再add即可,或者使用
touch hello.txt
再
git add hello.txt
即可。
不过为什么用notepad++创建就不行呢?
克隆GitHub上的项...
原创
2019-07-15 19:38:34 ·
1322 阅读 ·
0 评论