可能重複:
How do I enter an exclamation point into a git commit message from the command line?無法添加「!」在我的git符號提交信息
我是新來的git,我做了這個命令:
git commit -m "First Commit!"
這將引發錯誤像這樣:
bash: !": event not found
這個錯誤爲什麼會發生?是在Git中,我不應該在commit
中使用!
符號?
是否有其他符號我不應該使用或應該用任何轉義序列逃脫?
您可能會發現這個有用:HTTP: //superuser.com/questions/133780/in-bash-how-do-i-escape-an-exclamation-mark。 –
對不起,我搜索「Git增加!」,但沒有得到相關結果.. –
@DavidAlber:+1您的評論;)謝謝 –