Git command to display HEAD commit id? September 26, 2022 by Tarik Use the command: git rev-parse HEAD For the short version: git rev-parse --short HEAD