天天看點

git問題記錄:fatal: pathspec ‘xxxx‘ did not match any files

git問題記錄:fatal: pathspec ‘xxxx’ did not match any files

使用git pull 到本地後檔案改了名字,git add 出現:

fatal: pathspec ‘xxxxxx’ did not match any files 報錯,導緻無法git push

  1. git add . 先把更新本地倉庫
  2. git add xxxx 再送出單個檔案
  3. git commit -m “xxxx” 添加注釋
  4. 正常git push origin master 就可以了

繼續閱讀