无法在vscode中使用多个单词提交git commit

时间:2019-04-26 17:57:12

标签: git

大家好,我是vscode的新手,我尝试使用多个单词在vscode上进行提交,如“我编辑forms.py”中出现这些错误

(django1901) D:\django-practice\model_form\modelapp>git commit -m 'I edited  forms.py'
error: pathspec 'edited' did not match any file(s) known to git.
error: pathspec 'a' did not match any file(s) known to git.
error: pathspec 'file'' did not match any file(s) known to git.

请我帮忙解决这个问题

1 个答案:

答案 0 :(得分:0)

使用双引号而不是单引号可以解决问题:

示例:

git commit -m "I edited  forms.py"