当前位置:   article > 正文

GIT: error: pathspec ‘xxx did not match any file(s) known to git_error: pathspec 'website”' did not match any file(

error: pathspec 'website”' did not match any file(s) known to git
  • 删除缓存的文件(仅从索引中删除路径,而不是实际文件!!!)
	 git rm -r --cached .
  • 1
  • 将所有文件添加到索引
	git add .
  • 1
  • commit
	git commit -m "hopefully fixed pathspec error"
  • 1

参考:https://stackoverflow.com/questions/33628862/git-error-pathspec-xxx-did-not-match-any-files-known-to-git

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/繁依Fanyi0/article/detail/927407
推荐阅读
相关标签
  

闽ICP备14008679号