Create a tag in a GitHub repository

后端 未结 7 1558
逝去的感伤
逝去的感伤 2020-12-02 03:04

I have a repository in GitHub and I need to tag it.
I tagged in a shell, but on GitHub, it is not showing up.

Do I have to do

7条回答
  •  一整个雨季
    2020-12-02 03:42

    CAREFUL: In the command in Lawakush Kurmi's answer (git tag -a v1.0) the -a flag is used. This flag tells Git to create an annotated flag. If you don't provide the flag (i.e. git tag v1.0) then it'll create what's called a lightweight tag.


    Annotated tags are recommended, because they include a lot of extra information such as:

    • the person who made the tag
    • the date the tag was made
    • a message for the tag

    Because of this, you should always use annotated tags.

提交回复
热议问题