【问题标题】:When pressing q to exit git log, the log quits successfully, but the "q" also prints following the next prompt当按q退出git log时,日志退出成功,但在下一个提示后还会打印“q”
【发布时间】:2020-12-16 22:56:40
【问题描述】:

复制:

$ git log
...           # <first section of log prints...>
:             # q pressed to exit
$ q           # q exits, but q is not eaten

这是配置问题吗?我正在使用适用于 Windows v2.27.0 的 Git。

在 PowerShell/CMD 中不会出现该问题,在使用 e.g. 时也不会出现。 less 在大文本文件上。

【问题讨论】:

  • Git for Windows 2.28 是否仍然存在此问题?

标签: git git-bash


【解决方案1】:

此问题已得到解决。我不确定是哪个版本,但2.33.0.windows.2 没有这个问题。

【讨论】:

    【解决方案2】:

    可能是这样,因为您可能已经自动离开了git log,所以当我在 Windows 上使用 git bash 时,您不必按我的情况下的“:q”。 如果是cat,你想退出按ctrl + d

    我希望这能回答这个问题。

    【讨论】:

      猜你喜欢
      • 2019-03-12
      • 2017-04-26
      • 1970-01-01
      • 2018-03-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-05-22
      • 1970-01-01
      相关资源
      最近更新 更多