git get crrent checkout commit ref code example Example: git get current commit hash git rev-parse HEAD