gpt4 book ai didi

git - 如何更正错误 : pathspec message when committing in git?

转载 作者:IT王子 更新时间:2023-10-29 01:14:00 27 4
gpt4 key购买 nike

我正在尝试使用命令 git commit "commit message" 将更改提交到本地分支,但我收到以下消息:

error: pathspec 'commit message' did not match any file(s) known to git.

最佳答案

它是 git commit -m "commit message"。您缺少 -m 标志。

关于git - 如何更正错误 : pathspec message when committing in git?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4133138/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com