Git Basics (Tagging)
Today in this blog we will see Git Basics (Tagging).
Check latest magento extensions.
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
That’s it.
Happy coding 🙂
Be the first to comment.