git操作时提示:fatal: pathspec 'README' did not match any files 的处理办法

根据网上教程使用git,结果没几步就开始出问题。。。

就是个简单的git add

看到提示的fatal,下意识的认为很严重,开始以为跟大小写有关,结果试了下还是不行

加上文件的后缀名,搞定。

并且跟大小写无关

建议:各位同学操作时,注意后缀名的问题。操作系统中隐藏了后缀名的话,命令中就不要加;如果没有设置隐藏后缀名,命令中不能丢掉

git操作时提示:fatal: pathspec 'README' did not match any files 的处理办法

原文地址:https://www.cnblogs.com/zhang007/p/9531154.html

时间: 2024-08-05 00:24:17

git操作时提示:fatal: pathspec 'README' did not match any files 的处理办法的相关文章

解决git add README.md 时报错 fatal: pathspec 'README.md' did not match any files

解决办法一: 直接在远程仓库创建然后在本地$ git pull origin master 解决办法二: 换成$ touch README.md在本地创建修改后再commit push上去 解决git add README.md 时报错 fatal: pathspec 'README.md' did not match any files 原文地址:https://www.cnblogs.com/coderzjz/p/12660490.html

git rm–r folder fatal:pathspec "" did not match any files

问题描述: 某年某月某日,在查看git库的时候,发现文件的分布和文件夹的名字是极其不合理的,所以移动和重命名了某些文件. 在删除(git rm –r folder)一个空文件夹的时候,出现错误:fatal:pathspec "folder Name" did not match any files,就是说,git没有找到相应的文件.但是这个文件夹明明是存在的,刚把里面的文件移到其他的文件夹里面,此时这个文件夹是空的. 问题推测: 某人喜欢推测,知道这是个不好的习惯,但木有办法.在现有的

Eclipse编译JNI时提示"Fatal: Unable to open makefile"解决办法

编译JNI时提示"Fatal: Unable to open makefile"问题,如下图: 客户现场调试啊,没网络啊.最后只能挫败的回去了.下面贴出解决方法: 

执行git命令时出现fatal: 'origin' does not appear to be a git repository错误

在执行git pull origin master时出现: fatal: 'origin' does not appear to be a git repository fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists 解决方案: git remote add origin [email protec

git review时出现fatal: ICLA contributor agreement requires current contact information.错误

使用git review时出现错误: fatal: ICLA contributor agreement requires current contact information. Please review your contact information: https://review.openstack.org/#/settings/contact fatal: Could not read from remote repository. Please make sure you have

eclipse集成tomcat运行web时提示引入jar包的类找不到的解决办法

参考:http://blog.csdn.net/fjssharpsword/article/details/50635049 在eclipse集成tomcat开发web时,java类引入的jar包,编译通过,但启动tomcat运行web时提示找不到jar包内的类,需要作如下配置,将jar包在部署到集成的tomcat环境中. 问题:在 web应用 右键->Run as -> Run on Server情况下,会找不到Java Resources下Libraries的jar,应该是eclipse工

git clone 时出现fatal:unable to access 如下情况报错及解决办法

克隆公司的项目直接是git clone +远程项目地址,一般是没问题的,但是最近发现想要再克隆一份时报错,之前操作都没问题,很郁闷,网上查了各种办法,也试了很多,都不管用,没找到根本问题. 后来在同事的帮助下,终于知道了原因.即使你是新入职的员工根据远程地址克隆不下来项目时除了,我上一篇写的问题之外,还有一个原因就是线上地址不正确.这当然不是你的错,解决办法就是问老员工,让他们查看下真正的远程地址:使用  git remote  -v ,即可查看,然后把地址发你,重新克隆就可以啦!可能也会有其他

Git commit时提示错误时    解决办法

vi 编辑 vim 编辑 a 进入编辑模式 esc 退出编辑模式 shift+:    (看见: ) 代表开始执行下一行命名 w->q 保存退出 q->! 不保存退出 cat->空格->文件名 查看文件 * Please tell me who you are. Run git config –global user.email "[email protected]" git config –global user.name "Your Name&qu

es进行聚合操作时提示Fielddata is disabled on text fields by default

根据es官网的文档执行 GET /megacorp/employee/_search { "aggs": { "all_interests": { "terms": { "field": "interests", "size": 10 } } } } 这个例子时,报错: { "error": { "root_cause": [ { "ty