Request Quote

Git Basics (Tagging)

Git Basics (Tagging)

Today in this blog we will see Git Basics (Tagging)

Create Tag

a) Create Annotated Tags

$ git tag -a tag1 -m "first upload tag"

Running this command will create a new tag named ‘tag1‘ and with -m we can add a message

b) Create Lightweight Tags

$ git tag -a tag1

View Tags

$ git tag

Push in Tag

After creating a tag we can push the latest code in the tag

$ git push origin tag1

Clone from tag

$ git clone -b tag1 https://URLOFTHEREPOSITORY

Delete Tag

$ git tag -d tag1

Git Basics (Branching)

That’s it.

Happy coding 🙂


. . .


Add Your Comment

Be the first to comment.