zsh 怎么去转义?

写 git commit 的 message 的时候,遇到了 zsh 转义问题:

git add . && git commit -m "feature: 去掉无意义的 # !/usr/bin/python2.6"

报错:

╰─➤  git add . && git commit -m "feature: 去掉无意义的 # !/usr/bin/python2.6"                 130 ↵
zsh: event not found: /usr/bin/python2.6

哒咩!!!

如何解决?

阅读 1.7k
1 个回答
Have try
$ git add . && git commit -m "feature: 去掉无意义的 # \!/usr/bin/python2.6" 
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题