Create a tag with the given name pointing to a given commit

git tag

  • Create, list, delete or verify tags.
    A tag is a static reference to a specific commit.
    More information: <https://git-scm.com/docs/git-tag>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

git tag {{tag_name}} {{commit}}

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