git提交错误信息
当我编写命令行时:
git commit -m ™Initial commit™
我收到错误:
error: pathspec '"commit\342\204\242"' did not match any file(s) known to git.
如何修复它?
When I write a command line:
git commit -m ™Initial commit™
I got an error:
error: pathspec '"commit\342\204\242"' did not match any file(s) known to git.
How can i fix it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这可能是那些搞笑的 ™ 商标符号:
尝试手动输入
git commit -m "initial commit"
,并使用标准"
引号 - ASCII 八进制 042,十进制 34,十六进制 0x22。It's probably those hilarious ™ trademark symbols:
Try typing in, by hand,
git commit -m "initial commit"
, and using the standard"
quotes -- ASCII octal 042, decimal 34, hex 0x22.看来这是因为没有 git 可以放入存储库的文件。
创建一个空文件(例如 .gitlock),然后在提交之前运行以下命令:
It seems this is because there is no file that git could be put into the repository.
Create an empty file (for example .gitlock), and then run this command before committing: