Tagging


show more Tagging provides you with in-depth training on Developer. Taught by Michael Lehman as part of the Fundamentals of Software Version Control show less
please wait ...

Tagging

Tagging in Git is really easy. Tags are called tags. To create a tag, we'll say git tag, add the tag, v1, and then we'll add a message to indicate what it is we want, like Label version 1. Now to see the tags in your repository, it's as simple as saying git tag. To see what's in a specific tag, you can just type git show and the tag, and here we can see that the tag is shown, and it specifically shows up here at the top that I made the tag and when I did and exactly what is in there and what the various differences are between that tag and what's in my working set.

Now, if I want to go back to that tag at a later date, for example, in order to fix the bug, I can say, git checkout v1, and if I want to get back to the HEAD, I can say git checkout HEAD. Because branching is very easy in Git, you want to do a checkout to your tag and then do a branch there to allow you to make sure your changes are independent of whatever changes you were actually doing at the HEAD. So for example, ...

Tagging
Video duration: 2m 13s 2h 55m Intermediate

Viewers:

Tagging provides you with in-depth training on Developer. Taught by Michael Lehman as part of the Fundamentals of Software Version Control

Subject:
Developer
Software:
Git Mercurial ALM/TFS Perforce
Author:
please wait ...