The git log
command is used to view the commit history for a Git repository. In this case, the -n 5
option is used to specify that only the last 5 commits should be displayed, while the --oneline
option is used to display the commit hashes and the first line of the commit message in a concise format.
git log -n 5 --oneline
The output of this command will show a list of the last 5 commits, with each commit hash and corresponding commit message displayed on a single line. This can be useful for quickly checking recent changes to the repository.