I want to get the commit hash of the very first commit within a git repository.
Sounds easy enough, but I am struggling to find the right git command to do this.
I think this is a duplicate of this How to reference the initial commit? but to help you directly:
You are looking for this command
$ git rev-list --max-parents=0 HEAD