1. 程式人生 > >git add readme.txt 報錯 fatal: pathspec 'readme.txt' did not match any files

git add readme.txt 報錯 fatal: pathspec 'readme.txt' did not match any files

使用 git add readme.txt 命令,將本地檔案增加到倉庫時,命令報錯
fatal: pathspec ‘readme.txt’ did not match any files
說明在增加時,本地檔案下沒有這個檔案,重新建立 readme.txt , 然後在使用命令增加即可!