Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
193 views
in Technique[技术] by (71.8m points)

git - What does “~ (END)” mean when displayed in a terminal?

I'm running through the gitimmersion.com labs and every time I run a: git hist --all command it seems to break terminal and throw this:

~
~
~
~
(END)

and I'm not able to type any more commands. So I end up closing that terminal window and starting over.

Anyone know why this happens and how to resolve it?

Thanks!

question from:https://stackoverflow.com/questions/11261088/what-does-end-mean-when-displayed-in-a-terminal

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Git pipes long output into what's called a pager by default, which can make it easier to view the output if it doesn't fit on a screen. The ~ characters indicate that those lines were not in the original output, but it's showing them so that you can scroll down past the bottom (i.e. the last line of output can go up to the top of the screen).

You typically can use the arrow keys to scroll up or down, and can exit by pressing q.


Alternatively, if you don't want the output in a pager, try this:

$ git --no-pager hist --all

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...