git add tag

You can run these steps via git-bash

  1. Checking out master branch

    git checkout master

  2. Tagging master branch to the version you are going to release

    git tag relese-vX.Y.Z

  3. Show the tagged version

    git tag

    In case tagging wrong, you can delete tag with git tag -d release-vX.Y.Z

  4. Push the tagged branch to origin

    git push origin --tags

原文地址:https://www.cnblogs.com/tonggc1668/p/14242647.html