Git Commit命令获取路径规范的错误 [英] Git Commit Command Getting an error of path spec

查看:259
本文介绍了Git Commit命令获取路径规范的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

i am getting an error while trying to commit in git. what is the reason . i think everything is ok.

farooq@ubuntu:~/workspace/abproject$ git commit -m "First commit of assignment2_farooq" error: pathspec 'commit' did not match any file(s) known to git. error: pathspec 'of' did not match any file(s) known to git. error: pathspec 'abproject"' did not match any file(s) known to git.

推荐答案

git commit -m 第一次提交assignment2_farooq错误:pathspec ' commit' 匹配 any 文件已知 git.error:pathspec ' < 的span class =code-string> 匹配任何 file (s)已知到 git。错误:pathspec ' abproject' 匹配任何 文件已知 git。
git commit -m "First commit of assignment2_farooq" error: pathspec 'commit' did not match any file(s) known to git. error: pathspec 'of' did not match any file(s) known to git. error: pathspec 'abproject"' did not match any file(s) known to git.


显然问题在于引号,如果你从某个地方复制并粘贴,请尝试输入引用的注释你自己,如果失败,请尝试单引号。
Obviously the problem is in the quotes, if you have copied and pasted from somewhere try typing the quoted comments " yourself, if that fails try a single ' quote.


这篇关于Git Commit命令获取路径规范的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆