Complete the command to show the commit history with one line per commit.
git log --[1]The --oneline option shows each commit in a single line, making the log concise.
Complete the command to show the commit history with a custom format showing only the commit hash and message.
git log --pretty=[1]The --pretty=format:"%h %s" option customizes the output to show the short commit hash and the commit message.
Fix the error in the command to show commit logs with author name and date in a custom format.
git log --pretty=[1]The correct syntax uses double quotes inside the format option: format:"%an %ad".
Complete the command to show commit logs with abbreviated commit hash and author email.
git log --pretty=[1]The format:"%h %ae" option shows the short commit hash and author email.
Complete the command to show commit logs with commit hash, author name, and commit date in ISO format.
git log --pretty=[1] [2]
Use --pretty=format:"%h %an %ad" to show hash, author, and date. The --date=iso option formats the date in ISO format.