[Git] Get the current commit hash

Created on November 30, 2026

Use the full commit hash when you need to identify the commit at HEAD. See getting the current Git commit hash for the command and its short-hash variant.

Git