如何在git中提交时纠正错误:pathspec消息? [英] how do I correct the error: pathspec message when committing in git?
本文介绍了如何在git中提交时纠正错误:pathspec消息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图用命令 git commit提交消息
对本地分支提交更改,但得到以下消息:
错误:pathspec'commit message'与git已知的任何文件都不匹配。
解决方案
它是 git commit -m 提交信息
。您缺少 -m
标志。
I am trying to commit changes with the command git commit "commit message"
to a local branch, but am getting the following message:
error: pathspec 'commit message' did not match any file(s) known to git.
解决方案
It's git commit -m "commit message"
. You're missing the -m
flag.
这篇关于如何在git中提交时纠正错误:pathspec消息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文