随笔记录
git命令中添加一个文件,例如:test.txt
我们常规使用的命令为“git add test.txt”,有时候可能就会出现:fatal: pathspec 'test.txt' did not match any files
解决办法:我们换一种命令方式:使用命令“ touch test.txt”能创建成功,这样创建成功。
随笔记录
git命令中添加一个文件,例如:test.txt
我们常规使用的命令为“git add test.txt”,有时候可能就会出现:fatal: pathspec 'test.txt' did not match any files
解决办法:我们换一种命令方式:使用命令“ touch test.txt”能创建成功,这样创建成功。