【问题标题】:Need help to release Git from Pycharm override需要帮助从 Pycharm 覆盖中释放 Git
【发布时间】: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/

标签: python github pycharm


【解决方案1】:

感谢 @Blckknght 提供的洞察力来检查 git 配置设置。我做了一个 git config --list 发现:

core.editor=pycharm -wl1

卸载 PyCharm 或禁用 GitHub 集成似乎不会将其更改回默认值。

删除对 pycharm 的引用并替换为您喜欢的编辑器。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2017-02-07
    • 1970-01-01
    • 2021-08-17
    • 1970-01-01
    • 2011-04-11
    • 1970-01-01
    • 2014-06-20
    相关资源
    最近更新 更多