【问题标题】:git commit --amend hanging on hint: Waiting for your editor to close the file in vscodegit commit --amend hanging on hint: Waiting for your editor to close the file in vscode 中的 git commit --amend
【发布时间】:2022-12-15 11:59:01
【问题描述】:

相关帖子:Git hangs with "hint: Waiting for your editor to close the file..." when closing a commit message file in VSCode

我不喜欢上面链接中的解决方案,因为它创建了一个全新的 vscode 实例。我曾经能够git commit --amend,然后在我当前的vscode实例中弹出一个新选项卡,然后我在其中编辑提交消息,保存,然后关闭, hint: Waiting for your editor to close the file然后消失。从今天早上开始,这种情况不再发生,而且我认为我没有对我的~/.gitconfig 进行任何更改。

这些是我在.gitconfig中的当前设置

[submodule]
    recurse = true
[user]
    name = my_email
    email = my_email
[credential]
    helper = cache --timeout=31536000
[url "https://github.com/"]
  insteadOf = git://github.com/
[alias]
  tree = log --oneline --graph --all --decorate
[core]
    editor = code --wait
[diff]
  tool = vscode
[difftool "vscode"]
  cmd = code -n --wait --diff $LOCAL $REMOTE
[merge]
  tool = vscode
[mergetool "vscode"]
  cmd = code --wait $MERGED

有谁知道这个的解决方案?

附言我刚刚尝试了链接帖子中的解决方案,其中修改被路由到不同的实例,但也没有用。当我关闭新实例时,它仍然挂在hint: Waiting for....

【问题讨论】:

    标签: git visual-studio-code


    【解决方案1】:

    我不喜欢这个错误没有修复。 我的解决方案:例如,我转到我的 VM 并通过 Git GUI 提交。 它在 Mac 端(这是我的项目运行的地方)清除它,而无需重新打开或新实例。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-04-15
      • 2017-05-11
      • 1970-01-01
      • 2012-07-07
      • 1970-01-01
      • 2010-11-30
      • 1970-01-01
      • 2017-01-08
      相关资源
      最近更新 更多