1. git blame file
git blame can display each line of historical modification records. Sometimes we just want to know how many commits a certain file has been submitted and only display the commit list. This method obviously does not meet the requirements.
2.General use of git log
(1) Display all commits of the entire project
(2) Display all commits of a certain file
This is the normal use of git log without adding parameters. You can view the project and the history modification commit of a single file.
3.git log supports rich parameters
The --pretty option is used to specify the output format of the commit history. You can use different format strings to customize the output style. The following are some commonly used--pretty
oneline
: Displays brief information for each commit in one line, including the commit hash (abbreviation) and commit message.reference
Option to display a more compact citation format that omits commit messages and other details.short
: Displays each submission's