如何退出 git stash show -p 命令?

huangapple go评论49阅读模式
英文:

How to exit from git stash show -p command?

问题

我想查看存储的文件,所以输入了以下命令:

git stash show -p

现在我被困在这些文件中,如何在终端中退出该命令?

我尝试点击

ctrl + C

输入exit但仍然无法退出。

英文:

i wanted to see stashed files so i entered

git stash show -p

now Im stucked in those files , how can i exit that command in terminal?

I tried clikcing

 ctrl + C 

entered exit but still not getting out

答案1

得分: 2

Git已输出其文本,现在正在分页工具中显示。通常,在许多情况下,这是一个名为less的程序。

按下<kbd>q</kbd>(小写的Q)以退出less并返回到命令行。

英文:

Git has output its text and it's now being displayed in a pager utility. Likely, and the default in a lot of cases, this is a program called less.

Press <kbd>q</kbd> (lower case Q) to quit less and exit back to the command line.

huangapple
  • 本文由 发表于 2023年2月8日 13:51:03
  • 转载请务必保留本文链接:https://go.coder-hub.com/75381814.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定