![]() ![]() You can view information about the commit that a tag references simply by using the ‘–show’ parameter.$ git tag –show v0.1-alphaLightweight tags are best used either as a temporary label or to mark a minor milestone. To tag the most recent commit, run the tag command with the tag name.$ git tag v0.2-alphaParse the commit hash to tag a specific commit: $ git tag v0.1-alpha They don’t contain any extra information associated with them. Lightweight is the default option that the ‘git tag’ command uses when no other arguments are parsed. There are two kinds of tags: lightweight and annotated. In other words, a release point is signified by a tag. ![]() Tags are often used to specify which commit is the last one before a project version is released. Tags in git are references to a specific important commit in the branch history. Now we will focus our attention on these two features. Troubleshooting various issues including a merge conflict.Showing the differences between commits.Stashing uncommitted changes away for later.Explored a few third-party GUI frontends available for Git. ![]() Using branches to keep certain changes away from the master branch.The basics: cloning a repo, committing changes, pushing to and pulling from a remote repository.Here is a list of many of the aspects we have covered in this series: If you have been following the previous guides, and other materials, you should have a clearer understanding of what Git is, what it does, how to use it best, and how to troubleshoot. Here, we will be covering two more major features that Git has to offer: tags and sub-modules. This is the final guide in the Git series. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |