HEAD^2 refers to the commit's second parent. A commit can have two parents in a merge commit.