【发布时间】:2015-10-23 21:35:51
【问题描述】:
Pycharm 似乎以某种方式覆盖了我的 Git。
当我现在从终端转到 git commit 时,我收到以下错误:
pycharm -wl1: pycharm: command not found
error: There was a problem with the editor 'pycharm -wl1'.
Please supply the message using either -m or -F option.
Steve:repo_test Steve$ git commit
pycharm -wl1: pycharm: command not found
error: There was a problem with the editor 'pycharm -wl1'.
Please supply the message using either -m or -F option.
我在 Mac 上,我删除了 PyCharm 应用程序。
这个错误可能源于我尝试 PyCharm 的 Git 集成时,我在尝试后很快将其禁用。
感谢您的帮助!
【问题讨论】:
-
我猜它正在尝试使用 pycharm 来编辑提交消息。查找有关您的编辑器的 git config 设置。在短期内(例如,如果您需要立即提交),请在命令行上使用
-m标志传递提交消息。 -
我将查看 git 配置设置。我也只是尝试了这里解释的这个命令 (gist.github.com/denji/9731967) 来完全卸载 PyCharm 并将错误减少到
pycharm -wl1: pycharm: command not found error: There was a problem with the editor 'pycharm -wl1'. Please supply the message using either -m or -F option. -
也许 PyCharm 留下了 git hook ?在您的存储库中查看
.git/hooks/。