Time for action – referencing tags

We have learned git checkout as a function to travel back in history. As you know, this process needs the SHA1 ID of the commit, which you would like to visit. Now let's see how it can be done when it comes to handling tags. Type the following commands in your CLI window:

git checkout 2e361b44
git checkout edge_v1.1

This should give you an output as shown in the following screenshot:

Time for action – referencing tags

What just happened?

We checked out to a commit made at an earlier date using the usual checkout (git checkout SHA1 ID) method but came back to the latest commit with the usage of the tag name associated with the commit (edge_v1.1).

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.147.61.142