Home > Mobile >  How can i release a tag version from the command line (git bash) not from github [closed]
How can i release a tag version from the command line (git bash) not from github [closed]

Time:09-16

How to release my tag version from my local machine to GitHub through the command line. see this > https://ibb.co/m4H98Ms

CodePudding user response:

You need to create annotated tag

An annotated tag creates an additional tag object in the Git repository, which allows you to store information associated with the tag itself. This may include release notes, the meta-information about the release, and optionally a signature to verify the authenticity of the commit to which it points.

Creating Tags

Git uses two main types of tags: lightweight and annotated.

Annotated Tags:

To create an annotated tag in Git you can just run the following simple commands on your terminal.

$ git tag -a v2.1.0 -m "xyz feature is released in this tag."
$ git tag
v1.0.0
v2.0.0
v2.1.0

The -m denotes message for that particular tag. We can write summary of features which is going to tag here.

Lightweight Tags:

The other way to tag commits is lightweight tag. We can do it in the following way:

$ git tag v2.1.0
$ git tag
v1.0.0
v2.0.0
v2.1.0

Push Tag

To push particular tag you can use below command:

git push origin v1.0.3

Or if you want to push all tags then use the below command:

git push --tags

List all tags:

To list all tags, use the following command.

git tag

CodePudding user response:

Thanks for all that have answered my question, but I have got an answer. unfortunately, releases are a feature specific to Github but not Git. You might be able to use the Github command-line tool to do it but I'm not familiar with all of its features. I think this is the answer to my question.

  • Related