Git commands - View commit history

After submitting a number of updates, or clone an item, you might want to review the submission history. Accomplish this task the most simple and effective tool is git log command.

The default without any parameters, then, git log lists all of the updates submitted by the time, the most recent update row at the top. As you can see, this command lists the SHA-1 checksum, the author's name and e-mail address of each submission, submission time and commit.

A great option is -p , to display the contents of each submission differences. You can also add -2 to display only twice recently submitted,

If you want to see simple statistics for each submission, you can use --stat option.

 

git log common options:

 

 

Restrictions log git option output:

 

Guess you like

Origin www.cnblogs.com/shichangxing/p/11415631.html
Recommended