【发布时间】:2012-01-14 07:34:41
【问题描述】:
可能重复:
How do I enter an exclamation point into a git commit message from the command line?
我是 git 新手,我做了这个命令:
git commit -m "First Commit!"
这会引发如下错误:
bash: !": event not found
为什么会发生这个错误?是在 Git 中,我不应该在commit 中使用! 符号吗?
是否还有其他我不应该使用或应该使用任何转义序列转义的符号?
【问题讨论】:
-
您可能会发现这很有用:superuser.com/questions/133780/….
-
对不起,我用“Git added !”搜索,但没有得到相关结果..