Quantcast
Channel: Webkul Blog
Viewing all articles
Browse latest Browse all 5556

Git Basics (Tagging)

$
0
0

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 🙂

 


Viewing all articles
Browse latest Browse all 5556

Latest Images

Trending Articles



Latest Images