【问题标题】:VSCode remote shh hangs on "git rebase --continue"VSCode 远程 shh 挂在“git rebase --continue”上
【发布时间】:2022-08-04 13:25:45
【问题描述】:

当使用 remote-shh 扩展在远程 pc 上工作时,我遇到了 rebase 问题。当我完成变基并提交它时,git 挂断了这个问题:\“等待你的编辑器关闭文件......\”。我在远程 pc 上将 git 配置为 git config --system core.editor \"code --wait\" ,当我完成 rebase 后,git 在远程 pc 上打开编辑器,而不是在我正在使用的 vscode 上。有没有办法解决这种行为?

  • 这回答了你的问题了吗? How do I make git use the editor of my choice for commits? 将其配置为使用 vim 或 pico,以便编辑界面直接显示在您用于 SSH 的终端中。
  • 感谢你的回答。我没有直接使用终端。我使用 VSCode remote-ssh 扩展提供的 gui。
  • 我从来没有这样做过,但我仍然认为我的想法可能会奏效。 :)
  • 在 VSCode 集成终端中,输入type code。如果它没有指向~/.vscode-server 中的某些内容,则说明您的设置无法正常工作。我猜你的shell启动文件中的某些东西将系统code放在code之前,来自~/.vscode-server在你的PATH...
  • 是的,它不指向 ~/.vscode-server。我不知道如何解决它,因为在连接到远程 pc 时安装了 vscode-server。

标签: git visual-studio-code vscode-remote-ssh


【解决方案1】:

VSCode 1.70(本地和远程 SSH,2022 年 7 月)应该会改善这种情况。

它包括“Polish and fix git rebase --continue experience”,由PR 151824 修复,并发布到VSCode insider today

【讨论】:

    猜你喜欢
    • 2016-05-03
    • 2014-03-20
    • 2014-03-27
    • 2021-01-24
    • 1970-01-01
    • 2012-03-24
    • 1970-01-01
    • 1970-01-01
    • 2017-09-25
    相关资源
    最近更新 更多