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

posted @ 2021-01-06 18:17  tonggc1668  阅读(267)  评论(0编辑  收藏  举报