![]() For more detailed information, it’s best to use the editor (no ‘-m’ parameter). This saves you having to enter it in an editor. You can also quickly specify a message in the command using the ‘-m’ parameter like you do with ‘git commit’. It will open up a text editor so that a message about the tag can be entered. Creating an annotated tag requires an extra parameter: ‘-a’. This includes the username and email of the person who created the tag and when, and also the tagging message. AnnotatedĪnnotated tags contain more information about the tag. This resulted in a tag on the most recent commit with the hash as its name.įor more important points in history, there is the other type of tag. Here is another example where I deleted a tag (‘-d’ parameter) because I forgot to specify the tag name before the commit hash. 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. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |