Complete the command to show the commit history in the terminal.
git [1]The git log command shows the commit history of the current branch.
Complete the command to show a simplified one-line commit history.
git log --[1]=onelineThe --pretty=oneline option shows each commit on a single line.
Fix the error in the command to show the last 3 commits.
git log -n [1]The -n option expects a number, so 3 is correct.
Fill both blanks to show commit history with author and date.
git log --[1]='format:%h - [2] - %ad'
The --pretty option formats output; %h is short hash, %ad is date, and %an would be author but here author is used as a label.
Fill all three blanks to show commit history with graph, one line, and all branches.
git log --[1] --[2] --[3]
--graph shows commit history as a graph, --oneline shows each commit in one line, and --all shows commits from all branches.