how to tell which commit you are on git code example Example: git get current commit hash git rev-parse HEAD