Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

$git log waits for me to write smth

Tags:

git

I suppose this is a really stupid question and I'm sorry for this, but I don't know how to fix it and what I'm supposed to do.

I have never used a source control system, so I started reading Git's documentation. But I came this problem: when I execute $ git log it gives me ":" and it waits for me to do something but I don't know what and how to return back and be able to write a new command. It also says "No next tag (press RETURN) but I don't know how to press it :( Please help, because now the only way to continue is to close the bash after every $git log... And sorry once again for the stupid question.

like image 433
Faery Avatar asked Nov 16 '12 07:11

Faery


People also ask

What does git log show?

The git log command shows a list of all the commits made to a repository. You can see the hash of each Git commit , the message associated with each commit, and more metadata. This command is useful for displaying the history of a repository.

How do I press a return in git?

Mac: Type ls and hit Return. Windows using Git Bash: Type ls and hit Enter. Windows using Command Prompt: Type dir and hit Enter.

How do I exit git log?

You can press q to exit. git hist is using a pager tool so you can scroll up and down the results before returning to the console.

What is the git command?

Git is a distributed version-control system for tracking changes in any set of files, originally designed for coordinating work among programmers cooperating on source code during software development.


2 Answers

Press q. You have entered a pager output (less or more) but with an empty text.

like image 192
Mihai Maruseac Avatar answered Nov 02 '22 22:11

Mihai Maruseac


Note: if you want to avoid the pager option, you can do a:

git --no-pager log

From the git man page:

--no-pager

Do not pipe git output into a pager.

like image 26
VonC Avatar answered Nov 02 '22 22:11

VonC