【问题标题】:how to save commit message using atom如何使用 atom 保存提交消息
【发布时间】:2019-05-26 03:59:45
【问题描述】:

我在使用 Atom 保存提交消息时遇到问题。我知道有一种替代方法可以使用此
git commit -m "Title" -m "Description .........."
进行描述提交 但我致力于课程轨道。 无论如何,在收到错误消息之前,我所做的所有步骤都在以下 YouTube 视频中。

my problem with Atom to save commit message and exit .

最后,我收到了这个错误信息

试图在已关闭或释放的渲染器窗口中调用函数。 此处提供的功能:对象。 (C:\Users\Kimo Store\AppData\Local\atom\app-1.33.0\resources\app.asar\node_modules\github\lib\worker.js:61:22 远程事件名称:销毁、崩溃

需要注意的是,我正在使用 Windows 操作系统、GIT bash 和 Atom 文本编辑器

【问题讨论】:

    标签: git atom-editor git-bash


    【解决方案1】:

    首先,在编辑器中编辑所述消息时,您不需要将提交消息放在""(双引号)之间(而不是命令行git commit -m "...")。

    其次,检查您的 Atom 是如何设置为 git 提交消息编辑器的。

    git config -l
    

    GitHub documents 例如:

    git config --global core.editor "atom --wait"
    

    【讨论】:

    • 我使用路径进行配置以使其更准确>>取消设置编辑器后>> git config --global core.editor "'path\atom.exe' -n -w "。我认为配置很好,否则编辑器不会像视频所示那样弹出。
    • @MohamedSheshtawy 好的。您尝试在 CMD 会话中设置最小 PATH,例如 stackoverflow.com/a/53700095/6309
    猜你喜欢
    • 2014-12-30
    • 2013-07-02
    • 2018-03-28
    • 2021-12-25
    • 2019-02-03
    • 1970-01-01
    • 2019-05-21
    • 2011-03-28
    • 2013-05-27
    相关资源
    最近更新 更多