git問題記錄:fatal: pathspec ‘xxxx’ did not match any files
使用git pull 到本地後檔案改了名字,git add 出現:
fatal: pathspec ‘xxxxxx’ did not match any files 報錯,導緻無法git push
- git add . 先把更新本地倉庫
- git add xxxx 再送出單個檔案
- git commit -m “xxxx” 添加注釋
- 正常git push origin master 就可以了