Create a name for the last commit of a given branch

git describe

  • Give an object a human-readable name based on an available ref.
    More information: <https://git-scm.com/docs/git-describe>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

git describe {{branch_name}}

click the source code to copy install git describe on any operating system with command-not-found.com