how to set git head for commit hash value code example Example: git get current commit hash git rev-parse HEAD