One Comment

  1. Rather than cutting it, allow `git` to shorten the SHA on your behalf:

    git rev-parse –short HEAD

    From the docs:

    –short[=length]
    Same as –verify but shortens the object name to a unique prefix with at least length characters. The minimum length is 4, the default is the effective value of the core.abbrev configuration variable (see git-config[1]).

Leave a Reply

Your email address will not be published. Required fields are marked *