how to get commit hashed gitbash code example Example: git get current commit hash git rev-parse HEAD