How do I get the commit id of the head of master in git? February 4, 2023 by Tarik This command will get you the latest commit’s SHA-1 git rev-parse HEAD