The git log command is used to display a list of commits made in a repository. It can be used with various options and formats to customize the output.
--pretty=format:"%h - %s" specifies the format of the commit messages, showing the short hash and the commit message.