天天看点

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 就可以了

继续阅读