本文介绍了如何在git中提交时纠正错误:pathspec消息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图用命令

它是 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消息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-18 01:55
查看更多