The "Scan Files" button (you'll have to hover over them to figure out The files in the folder, or all the files you want to tag, click on Open EasyTag, navigate to a folder with music files in it, select all In terms of how to use it, the best reference turns out to be EasyTAG’s own documentation. You also discovered advanced usages of tags with annotated messages but also about naming your git tags correctly using semantic versioning.EasyTAG is indeed a great tool for this problem. In this tutorial, you learnt how you can easily create Git tags for your projects. $ git tag -nĬongratulations, you have successfully created a new tag for the last commit of your repository. Like in the previous sections, you can verify that your tag was successfully created by running the “git tag” command with the “-n” option. Similarly, if you want your tag to be annotated, you can still use the “-a” and “-m” options to annotate your tag. $ git tag HEAD~1 (for two commits before HEAD) $ git tag HEAD~1 (for the commit before HEAD) In order to create a Git tag for the last commit of your current checked out branch, use the “git tag” command with the tag name and specify “HEAD” as the commit to create the tag from. If you want to create a Git tag from the last commit, there is a shorter syntax that you can use : the HEAD syntax. $ git log -onelineĬab6e1b (tag: v1.0, origin/master) master : initial commitĪwesome, you have successfully created a tag for a specific commit in your Git history. Next, run the “git log” command again to make sure that your commit was correctly tagged. In order to create an annotated tag for the first commit in your Git history, you would execute the following command $ git tag -a v1.0 cab6e1b -m "Tagged the first commit with v1.0" $ git log -onelineĬab6e1b (origin/master) master : initial commit $ git tag -a -m "message"Īs an example, let’s say that you want to create an annotated commit for the first commit of your Git history.įirst, list the commits SHA by using the “git log” command with the “–oneline” option to get short commits SHA. If you want to create an annotated tag for a specific commit, you can use the “-a” and “-m” options we described in the previous section. In order to create a Git tag for a specific commit, use the “git tag” command with the tag name and the commit SHA for the tag to be created. In some cases, you may want to create a Git tag for a specific commit of your Git history. Great, now your tags pushed to your remote repository and your colleagues can start fetching it. $ git push -tagsįor example, given the tags that you created in the previous section, you would get the following output $ git push -tags To push your newly created tags, use the “git push” command and specify the “–tags” to explicitly push tags to your remote Git repository. $ git tag v2.0.0 Push your created tagsīy default, the “git push” command does not automatically push your tags to your remote repository. In your latest commit, you introduced a code-breaking change, as a consequence you are going to increment the major version number.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |