{"id":84083,"date":"2025-01-16T13:58:45","date_gmt":"2025-01-16T06:58:45","guid":{"rendered":"https:\/\/itviec.com\/blog\/?p=84083"},"modified":"2025-07-10T10:52:11","modified_gmt":"2025-07-10T03:52:11","slug":"git-tag-la-gi","status":"publish","type":"post","link":"https:\/\/itviec.com\/blog\/git-tag-la-gi\/","title":{"rendered":"Git Tag: H\u01b0\u1edbng d\u1eabn chi ti\u1ebft c\u00e1ch qu\u1ea3n l\u00fd phi\u00ean b\u1ea3n hi\u1ec7u qu\u1ea3"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_85 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">N\u1ed9i dung b\u00e0i vi\u1ebft<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/itviec.com\/blog\/git-tag-la-gi\/#Git_Tag_la_gi\" >Git Tag l\u00e0 g\u00ec?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/itviec.com\/blog\/git-tag-la-gi\/#Phan_loai_Git_Tag\" >Ph\u00e2n lo\u1ea1i Git Tag<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/itviec.com\/blog\/git-tag-la-gi\/#Cong_dung_cua_Git_tag\" >C\u00f4ng d\u1ee5ng c\u1ee7a Git tag<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/itviec.com\/blog\/git-tag-la-gi\/#Cach_su_dung_Git_Tag\" >C\u00e1ch s\u1eed d\u1ee5ng Git Tag<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/itviec.com\/blog\/git-tag-la-gi\/#Cac_luu_y_khi_su_dung_Git_Tag\" >C\u00e1c l\u01b0u \u00fd khi s\u1eed d\u1ee5ng Git Tag<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/itviec.com\/blog\/git-tag-la-gi\/#Cac_cau_hoi_thuong_gap_ve_Git_Tag\" >C\u00e1c c\u00e2u h\u1ecfi th\u01b0\u1eddng g\u1eb7p v\u1ec1 Git Tag<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/itviec.com\/blog\/git-tag-la-gi\/#Tong_ket\" >T\u1ed5ng k\u1ebft<\/a><\/li><\/ul><\/nav><\/div>\n\n<p><em><strong>Tagging l\u00e0 m\u1ed9t ch\u1ee9c n\u0103ng h\u1eefu \u00edch trong Git gi\u00fap vi\u1ec7c qu\u1ea3n l\u00fd c\u00e1c phi\u00ean b\u1ea3n ph\u00e1t h\u00e0nh \u0111\u01b0\u1ee3c linh ho\u1ea1t v\u00e0 ti\u1ec7n l\u1ee3i h\u01a1n. C\u00f9ng kh\u00e1m ph\u00e1 c\u00e1ch s\u1eed d\u1ee5ng Git tag hi\u1ec7u qu\u1ea3 \u0111\u1ec3 qu\u1ea3n l\u00fd phi\u00ean b\u1ea3n trong m\u00e3 ngu\u1ed3n, bao g\u1ed3m h\u01b0\u1edbng d\u1eabn chi ti\u1ebft v\u1ec1 qu\u1ea3n l\u00fd tag, t\u1ea1o, x\u00f3a, ch\u1ec9nh s\u1eeda m\u1ed9t tag.<\/strong><\/em><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">\u0110\u1ecdc b\u00e0i vi\u1ebft n\u00e0y \u0111\u1ec3 hi\u1ec3u r\u00f5 h\u01a1n v\u1ec1:<\/span><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><span style=\"font-weight: 400;\">Git tag l\u00e0 g\u00ec?<\/span><\/li>\n\n\n\n<li><span style=\"font-weight: 400;\">C\u00e1c lo\u1ea1i git tag<\/span><\/li>\n\n\n\n<li><span style=\"font-weight: 400;\">C\u00e1c thao t\u00e1c \u0111\u1ed1i v\u1edbi git tag<\/span><\/li>\n\n\n\n<li><span style=\"font-weight: 400;\">C\u00e1c l\u00e0m vi\u1ec7c v\u1edbi git tag<\/span><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-git-tag-la-gi\"><span class=\"ez-toc-section\" id=\"Git_Tag_la_gi\"><\/span><b>Git Tag l\u00e0 g\u00ec?<\/b><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p><span style=\"font-weight: 400;\">Tag l\u00e0 m\u1ed9t \u0111\u1ed1i t\u01b0\u1ee3ng tham chi\u1ebfu (references) tr\u1ecf \u0111\u1ebfn c\u00e1c \u0111i\u1ec3m c\u1ee5 th\u1ec3 trong l\u1ecbch s\u1eed Git, t\u01b0\u01a1ng t\u1ef1 nh\u01b0 c\u00e1c \u0111\u00e1nh d\u1ea5u ch\u01b0\u01a1ng trong m\u1ed9t cu\u1ed1n s\u00e1ch. B\u1ea1n c\u00f3 th\u1ec3 t\u1ea1o tag \u0111\u1ec3 tr\u1ecf \u0111\u1ebfn m\u1ed9t phi\u00ean b\u1ea3n ph\u00e1t h\u00e0nh m\u1edbi, m\u1ed9t thay \u0111\u1ed5i quan tr\u1ecdng trong m\u00e3 ngu\u1ed3n, ho\u1eb7c b\u1ea5t k\u1ef3 s\u1ef1 ki\u1ec7n n\u00e0o m\u00e0 \u0111\u1ed9i ng\u0169 ph\u00e1t tri\u1ec3n mu\u1ed1n tham chi\u1ebfu \u0111\u1ebfn nh\u1eb1m ch\u1ec9 \u0111\u1ecbnh phi\u00ean b\u1ea3n ph\u00e1t h\u00e0nh c\u1ee5 th\u1ec3 (v\u00ed d\u1ee5: v1.0.1).<\/span><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1426\" height=\"518\" src=\"https:\/\/itviec.com\/blog\/wp-content\/uploads\/2025\/01\/git-tag-1-vippro.jpg\" alt=\"git tag - itviec blog\" class=\"wp-image-84142\" srcset=\"https:\/\/itviec.com\/blog\/wp-content\/uploads\/2025\/01\/git-tag-1-vippro.jpg 1426w, https:\/\/itviec.com\/blog\/wp-content\/uploads\/2025\/01\/git-tag-1-vippro-300x109.jpg 300w, https:\/\/itviec.com\/blog\/wp-content\/uploads\/2025\/01\/git-tag-1-vippro-640x232.jpg 640w, https:\/\/itviec.com\/blog\/wp-content\/uploads\/2025\/01\/git-tag-1-vippro-200x73.jpg 200w, https:\/\/itviec.com\/blog\/wp-content\/uploads\/2025\/01\/git-tag-1-vippro-768x279.jpg 768w, https:\/\/itviec.com\/blog\/wp-content\/uploads\/2025\/01\/git-tag-1-vippro-100x36.jpg 100w, https:\/\/itviec.com\/blog\/wp-content\/uploads\/2025\/01\/git-tag-1-vippro-700x254.jpg 700w\" sizes=\"auto, (max-width: 1426px) 100vw, 1426px\" \/><\/figure>\n\n\n\n<p><span style=\"font-weight: 400;\">Tag gi\u1ed1ng nh\u01b0 m\u1ed9t nh\u00e1nh (branch) nh\u01b0ng kh\u00f4ng thay \u0111\u1ed5i. Kh\u00e1c v\u1edbi nh\u00e1nh, tag kh\u00f4ng c\u00f3 l\u1ecbch s\u1eed commit sau khi \u0111\u01b0\u1ee3c t\u1ea1o<\/span><span style=\"font-weight: 400;\">. Khi m\u1ed9t tag \u0111\u01b0\u1ee3c t\u1ea1o, kh\u00f4ng th\u1ec3 th\u00eam commit m\u1edbi v\u00e0o n\u00f3, nh\u01b0ng b\u1ea1n c\u00f3 th\u1ec3 d\u1ec5 d\u00e0ng tham chi\u1ebfu b\u1eb1ng t\u00ean tag.<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">\u0110i\u1ec1u n\u00e0y cho ph\u00e9p b\u1ea1n chuy\u1ec3n sang phi\u00ean b\u1ea3n m\u00e3 ngu\u1ed3n \u0111\u01b0\u1ee3c g\u1eafn tag \u0111\u1ec3 xem m\u00e3 tr\u00f4ng nh\u01b0 th\u1ebf n\u00e0o t\u1ea1i th\u1eddi \u0111i\u1ec3m tag \u0111\u01b0\u1ee3c t\u1ea1o v\u00e0 n\u1ebfu c\u1ea7n, c\u00f3 th\u1ec3 quay l\u1ea1i phi\u00ean b\u1ea3n m\u00e3 ngu\u1ed3n c\u1ee5 th\u1ec3 \u0111\u00f3.<\/span><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><em><span style=\"font-weight: 400;\">T\u00ecm hi\u1ec3u th\u00f4ng tin chi ti\u1ebft v\u1ec1 <a href=\"https:\/\/itviec.com\/blog\/git-branch-la-gi\/\" target=\"_blank\" rel=\"noopener\"><strong>Git branch<\/strong><\/a><\/span>.<\/em><\/p>\n<\/blockquote>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-phan-lo\u1ea1i-git-tag\"><span class=\"ez-toc-section\" id=\"Phan_loai_Git_Tag\"><\/span><b>Ph\u00e2n lo\u1ea1i Git Tag<\/b><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p><span style=\"font-weight: 400;\">C\u00f3 hai lo\u1ea1i tag ch\u00ednh trong Git l\u00e0 annotated tag v\u00e0 lightweight tag:<\/span><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-annotated-tag\"><b>Annotated Tag<\/b><\/h3>\n\n\n\n<p><span style=\"font-weight: 400;\">Annotated Tag (tag ch\u00fa th\u00edch)&nbsp; \u0111\u01b0\u1ee3c l\u01b0u tr\u1eef d\u01b0\u1edbi d\u1ea1ng c\u00e1c \u0111\u1ed1i t\u01b0\u1ee3ng \u0111\u1ea7y \u0111\u1ee7 trong c\u01a1 s\u1edf d\u1eef li\u1ec7u Git. N\u00f3 bao g\u1ed3m c\u00e1c metadata b\u1ed5 sung nh\u01b0 ng\u01b0\u1eddi t\u1ea1o, ng\u00e0y t\u1ea1o v\u00e0 m\u00f4 t\u1ea3 chi ti\u1ebft. T\u01b0\u01a1ng t\u1ef1 nh\u01b0 commit, Annotated Tag c\u00f3 m\u1ed9t th\u00f4ng \u0111i\u1ec7p g\u1eafn th\u1ebb (tagging message) \u0111\u1ec3 m\u00f4 t\u1ea3 chi ti\u1ebft v\u1ec1 n\u1ed9i dung c\u1ee7a tag. Annotated Tag \u0111\u01b0\u1ee3c khuy\u1ebfn ngh\u1ecb s\u1eed d\u1ee5ng cho vi\u1ec7c \u0111\u00e1nh d\u1ea5u c\u00e1c \u0111i\u1ec3m quan tr\u1ecdng nh\u01b0 phi\u00ean b\u1ea3n release (ph\u00e1t h\u00e0nh).<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">\u0110\u1ec3 t\u1ea1o m\u1ed9t Annotated Tag, ta s\u1eed d\u1ee5ng c\u00fa ph\u00e1p sau:<\/span><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><span style=\"font-weight: 400;\">git tag -a &lt;t\u00ean tag&gt;<\/span><\/code><\/pre>\n\n\n\n<p><span style=\"font-weight: 400;\">\u0110i\u1ec1u n\u00e0y s\u1ebd th\u1ef1c hi\u1ec7n vi\u1ec7c t\u1ea1o m\u1ed9t tag m\u1edbi, v\u00e0 git s\u1ebd m\u1edf m\u1ed9t tr\u00ecnh so\u1ea1n th\u1ea3o \u0111\u1ec3 ch\u00fang ta c\u00f3 th\u1ec3 b\u1ed5 sung c\u00e1c n\u1ed9i dung cho tag. Ho\u1eb7c \u0111\u1ec3 b\u1ed5 sung th\u00eam n\u1ed9i dung m\u00f4 t\u1ea3 v\u00e0 kh\u00f4ng c\u1ea7n m\u1edf tr\u00ecnh so\u1ea1n th\u1ea3o, ta c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng c\u00fa ph\u00e1p:<\/span><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><span style=\"font-weight: 400;\">git tag -a &lt;t\u00ean tag&gt; -m <\/span><span style=\"font-weight: 400;\">\"th\u00f4ng \u0111i\u1ec7p\"<\/span><\/code><\/pre>\n\n\n\n<p><span style=\"font-weight: 400;\">\u0110\u1ec3 xem th\u00f4ng tin c\u1ee7a m\u1ed9t tag, ta c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng l\u1ec7nh git show nh\u01b0 sau:<\/span><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><span style=\"font-weight: 400;\">git show &lt;tag name&gt;<\/span><\/code><\/pre>\n\n\n\n<p><span style=\"font-weight: 400;\">V\u00ed d\u1ee5 v\u1ec1 k\u1ebft qu\u1ea3 \u0111\u1ea7u ra:<\/span><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><span style=\"font-weight: 400;\">tag v1.4<\/span>\n<span style=\"font-weight: 400;\">Tagger: User 1&lt;example@itviec.com&gt;<\/span>\n<span style=\"font-weight: 400;\">Date: &nbsp; Sat May 3 20:19:12 2014 -0700<\/span>\n\n<span style=\"font-weight: 400;\">my version 1.4<\/span>\n\n<span style=\"font-weight: 400;\">commit ca82a6dff817ec66f44342007202690a93763949<\/span>\n<span style=\"font-weight: 400;\">Author: User 2 &lt;example1@itviec.com&gt;<\/span>\n<span style=\"font-weight: 400;\">Date: &nbsp; Mon Mar 17 21:52:11 2008 -0700<\/span>\n\n<span style=\"font-weight: 400;\">&nbsp; &nbsp; Change version number<\/span><\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-lightweight-tag\"><b>Lightweight Tag<\/b><\/h3>\n\n\n\n<p><span style=\"font-weight: 400;\">Lightweight tag l\u00e0 m\u1ed9t tham chi\u1ebfu tr\u1ef1c ti\u1ebfp \u0111\u1ebfn commit m\u00e0 kh\u00f4ng c\u00f3 b\u1ea5t k\u1ef3 metadata n\u00e0o. \u0110i\u1ec1u n\u00e0y ph\u00f9 h\u1ee3p v\u1edbi c\u00e1c nh\u00e3n \u0111\u01a1n gi\u1ea3n v\u00e0 mang t\u00ednh t\u1ea1m th\u1eddi. Lightweight tag kh\u00f4ng s\u1eed d\u1ee5ng k\u00e8m v\u1edbi c\u00e1c t\u00f9y ch\u1ecdn <code>-a<\/code>, <code>-m<\/code>.<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">\u0110\u00e2y l\u00e0 c\u00fa ph\u00e1p \u0111\u1ec3 t\u1ea1o m\u1ed9t lightweight tag:<\/span><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><span style=\"font-weight: 400;\">git tag &lt;t\u00ean tag&gt;<\/span><\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-so-sanh-gi\u1eefa-2-lo\u1ea1i-tag\"><b>So s\u00e1nh gi\u1eefa 2 lo\u1ea1i tag<\/b><\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td><b>Ti\u00eau ch\u00ed<\/b><\/td><td><b>Annotated Tag<\/b><\/td><td><b>Lightweight Tag<\/b><\/td><\/tr><tr><td><b>C\u00fa ph\u00e1p<\/b><\/td><td><span style=\"font-weight: 400;\"><code>git tag -a &lt;t\u00ean tag><\/code><\/span><\/td><td><span style=\"font-weight: 400;\"><code>git tag &lt;t\u00ean tag><\/code><\/span><\/td><\/tr><tr><td><b>Metadata<\/b><\/td><td><span style=\"font-weight: 400;\">Bao g\u1ed3m ng\u01b0\u1eddi t\u1ea1o, email, ng\u00e0y t\u1ea1o, th\u00f4ng \u0111i\u1ec7p tag<\/span><\/td><td><span style=\"font-weight: 400;\">Kh\u00f4ng c\u00f3 metadata<\/span><\/td><\/tr><tr><td><b>M\u1ee5c \u0111\u00edch s\u1eed d\u1ee5ng<\/b><\/td><td><span style=\"font-weight: 400;\">Ph\u00f9 h\u1ee3p cho c\u00e1c nh\u00e3n quan tr\u1ecdng, v\u00ed d\u1ee5: phi\u00ean b\u1ea3n release<\/span><\/td><td><span style=\"font-weight: 400;\">Ph\u00f9 h\u1ee3p cho c\u00e1c nh\u00e3n t\u1ea1m th\u1eddi ho\u1eb7c \u0111\u01a1n gi\u1ea3n<\/span><\/td><\/tr><tr><td><b>L\u01b0u tr\u1eef trong Git<\/b><\/td><td><span style=\"font-weight: 400;\">L\u01b0u d\u01b0\u1edbi d\u1ea1ng \u0111\u1ed1i t\u01b0\u1ee3ng \u0111\u1ea7y \u0111\u1ee7 trong Git database<\/span><\/td><td><span style=\"font-weight: 400;\">Ch\u1ec9 l\u00e0 m\u1ed9t tham chi\u1ebfu tr\u1ef1c ti\u1ebfp<\/span><\/td><\/tr><tr><td><b>Tr\u01b0\u1eddng h\u1ee3p s\u1eed d\u1ee5ng c\u1ee5 th\u1ec3<\/b><\/td><td><span style=\"font-weight: 400;\">T\u1ea1o tag <\/span><b>v1.0.0<\/b><span style=\"font-weight: 400;\"> \u0111\u1ec3 \u0111\u00e1nh d\u1ea5u phi\u00ean b\u1ea3n ph\u00e1t h\u00e0nh ch\u00ednh th\u1ee9c c\u1ee7a \u1ee9ng d\u1ee5ng, ho\u1eb7c tag <\/span><b>v1.0.1<\/b><span style=\"font-weight: 400;\"> \u0111\u1ec3 \u0111\u00e1nh d\u1ea5u phi\u00ean b\u1ea3n s\u1eeda l\u1ed7i cho phi\u00ean b\u1ea3n <\/span><b>v1.0.0<\/b><span style=\"font-weight: 400;\"> tr\u01b0\u1edbc \u0111\u00f3, k\u00e8m theo m\u00f4 t\u1ea3 chi ti\u1ebft nh\u01b0 ng\u01b0\u1eddi t\u1ea1o, th\u00f4ng \u0111i\u1ec7p v\u1ec1 t\u00ednh n\u0103ng \u0111\u01b0\u1ee3c ph\u00e1t h\u00e0nh<\/span><\/td><td><span style=\"font-weight: 400;\">T\u1ea1o tag <\/span><b>v1.0-beta<\/b><span style=\"font-weight: 400;\"> \u0111\u1ec3 \u0111\u00e1nh d\u1ea5u t\u1ea1m th\u1eddi m\u1ed9t tr\u1ea1ng th\u00e1i commit c\u1ee5 th\u1ec3 trong qu\u00e1 tr\u00ecnh th\u1eed nghi\u1ec7m<\/span><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-cong-d\u1ee5ng-c\u1ee7a-git-tag\"><span class=\"ez-toc-section\" id=\"Cong_dung_cua_Git_tag\"><\/span><b>C\u00f4ng d\u1ee5ng c\u1ee7a Git tag<\/b><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p><span style=\"font-weight: 400;\">Nh\u1edd v\u00e0o kh\u1ea3 n\u0103ng t\u1ea1o tham chi\u1ebfu, Git Tag \u0111\u00e3 tr\u1edf th\u00e0nh m\u1ed9t c\u00f4ng c\u1ee5 h\u1eefu \u00edch v\u1edbi nhi\u1ec1u c\u00f4ng d\u1ee5ng quan tr\u1ecdng:<\/span><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><span style=\"font-weight: 400;\">G\u00e1n nh\u00e3n cho c\u00e1c phi\u00ean b\u1ea3n quan tr\u1ecdng trong l\u1ecbch s\u1eed commit<\/span><\/li>\n\n\n\n<li><span style=\"font-weight: 400;\">Qu\u1ea3n l\u00fd d\u1ec5 d\u00e0ng c\u00e1c phi\u00ean b\u1ea3n ph\u00e1t h\u00e0nh<\/span><\/li>\n\n\n\n<li><span style=\"font-weight: 400;\">H\u1ed7 tr\u1ee3 theo d\u00f5i v\u00e0 quay l\u1ea1i nhanh ch\u00f3ng m\u1ed9t tr\u1ea1ng th\u00e1i c\u1ee5 th\u1ec3 trong repository<\/span><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-cach-s\u1eed-d\u1ee5ng-git-tag\"><span class=\"ez-toc-section\" id=\"Cach_su_dung_Git_Tag\"><\/span><b>C\u00e1ch s\u1eed d\u1ee5ng Git Tag<\/b><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-t\u1ea1o-git-tag\"><b>T\u1ea1o git tag<\/b><\/h3>\n\n\n\n<p><span style=\"font-weight: 400;\">C\u00fa ph\u00e1p:<\/span><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><span style=\"font-weight: 400;\">git tag &lt;t\u00ean tag&gt;<\/span><\/code><\/pre>\n\n\n\n<p><span style=\"font-weight: 400;\">Ho\u1eb7c \u0111\u1ec3 t\u1ea1o Annotated Tag:<\/span><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><span style=\"font-weight: 400;\">git tag -a &lt;t\u00ean tag&gt;<\/span><\/code><\/pre>\n\n\n\n<p><span style=\"font-weight: 400;\">V\u00ed d\u1ee5, b\u1ea1n \u0111ang \u1edf nh\u00e1nh release v\u00e0 mu\u1ed1n g\u1eafn th\u1ebb v1.0.1 cho tr\u1ea1ng th\u00e1i m\u00e3 ngu\u1ed3n hi\u1ec7n t\u1ea1i, b\u1ea1n c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng c\u00fa ph\u00e1p:<\/span><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><span style=\"font-weight: 400;\">git tag -a v1.0.1 -m <\/span><span style=\"font-weight: 400;\">\"ph\u00e1t h\u00e0nh ch\u1ee9c n\u0103ng \u0111\u0103ng nh\u1eadp\"<\/span><\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-ki\u1ec3m-tra-danh-sach-tags\"><b>Ki\u1ec3m tra danh s\u00e1ch tags<\/b><\/h3>\n\n\n\n<p><span style=\"font-weight: 400;\">\u0110\u1ec3 li\u1ec7t k\u00ea danh s\u00e1ch c\u00e1c tags \u0111\u00e3 \u0111\u01b0\u1ee3c t\u1ea1o trong kho l\u01b0u tr\u1eef, th\u1ef1c hi\u1ec7n c\u00fa ph\u00e1p sau:<\/span><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><span style=\"font-weight: 400;\">git tag<\/span><\/code><\/pre>\n\n\n\n<p><span style=\"font-weight: 400;\">L\u1ec7nh n\u00e0y s\u1ebd \u0111\u01b0a ra danh s\u00e1ch c\u00e1c th\u1ebb, v\u00ed d\u1ee5 nh\u01b0:<\/span><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><span style=\"font-weight: 400;\">v1.0.1<\/span>\n<span style=\"font-weight: 400;\">v1.0.2<\/span>\n<span style=\"font-weight: 400;\">v1.1.0<\/span>\n<span style=\"font-weight: 400;\">v1.1.1<\/span><\/code><\/pre>\n\n\n\n<p><span style=\"font-weight: 400;\">Ho\u1eb7c \u0111\u1ec3 l\u1ecdc ra danh s\u00e1ch tags d\u1ef1a theo t\u1eeb kh\u00f3a, th\u1ef1c hi\u1ec7n c\u00fa ph\u00e1p sau:<\/span><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><span style=\"font-weight: 400;\">git tag -l *&lt;keyword&gt;*<\/span><\/code><\/pre>\n\n\n\n<p><span style=\"font-weight: 400;\">V\u1edbi t\u00f9y ch\u1ecdn <code>-l<\/code>,\u00a0 b\u1ea1n c\u00f3 th\u1ec3 t\u00ecm ki\u1ebfm t\u00ean tag d\u1ef1a t\u00ean t\u1eeb kh\u00f3a cho tr\u01b0\u1edbc. V\u00ed d\u1ee5 \u0111\u1ec3 hi\u1ec3n th\u1ecb t\u1ea5t c\u1ea3 tag c\u00f3 ch\u1ee9a t\u1eeb kh\u00f3a \u2018<code>-rc<\/code>\u2019:<\/span><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><span style=\"font-weight: 400;\">git tag -l *-rc*<\/span><\/code><\/pre>\n\n\n\n<p><span style=\"font-weight: 400;\">K\u1ebft qu\u1ea3 s\u1ebd c\u00f3 d\u1ea1ng sau:&nbsp;<\/span><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><span style=\"font-weight: 400;\">&nbsp; &nbsp; v0.10.0-rc1<\/span>\n<span style=\"font-weight: 400;\">&nbsp; &nbsp; v0.11.0-rc1<\/span>\n<span style=\"font-weight: 400;\">&nbsp; &nbsp; v0.12.0-rc1<\/span>\n<span style=\"font-weight: 400;\">&nbsp; &nbsp; v0.13.0-rc1<\/span>\n<span style=\"font-weight: 400;\">&nbsp; &nbsp; v0.13.0-rc2<\/span>\n<span style=\"font-weight: 400;\">&nbsp; &nbsp; v0.14.0-rc1<\/span>\n<span style=\"font-weight: 400;\">&nbsp; &nbsp; v0.9.0-rc1<\/span>\n<span style=\"font-weight: 400;\">&nbsp; &nbsp; v15.0.0-rc.1<\/span>\n<span style=\"font-weight: 400;\">&nbsp; &nbsp; v15.0.0-rc.2<\/span>\n<span style=\"font-weight: 400;\">&nbsp; &nbsp; v15.4.0-rc.3<\/span><\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-g\u1eafn-tag-cho-commit-cu\"><b>G\u1eafn tag cho commit c\u0169<\/b><\/h3>\n\n\n\n<p><span style=\"font-weight: 400;\">M\u1eb7c \u0111\u1ecbnh, l\u1ec7nh git tag s\u1ebd t\u1ea1o m\u1ed9t tag tr\u00ean commit m\u00e0 HEAD \u0111ang tham chi\u1ebfu. Tuy nhi\u00ean, ch\u00fang ta c\u00f3 th\u1ec3 truy\u1ec1n m\u1ed9t tham chi\u1ebfu c\u1ee5 th\u1ec3 cho l\u1ec7nh git tag \u0111\u1ec3 g\u1eafn th\u1ebb commit \u0111\u00f3 thay v\u00ec m\u1eb7c \u0111\u1ecbnh l\u00e0 HEAD.<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">C\u00fa ph\u00e1p c\u01a1 b\u1ea3n nh\u01b0 sau:<\/span><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><span style=\"font-weight: 400;\">git tag -a &lt;tag name&gt; &lt;commit <\/span><span style=\"font-weight: 400;\">hash<\/span><span style=\"font-weight: 400;\">&gt;<\/span><\/code><\/pre>\n\n\n\n<p><span style=\"font-weight: 400;\">V\u00ed d\u1ee5, \u0111\u1ec3 g\u1eafn tag cho commit c\u00f3 th\u00f4ng \u0111i\u1ec7p l\u00e0 \u201cimplement feature login\u201d, ta th\u1ef1c hi\u1ec7n nh\u01b0 sau:<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\"><strong>B\u01b0\u1edbc 1:<\/strong> S\u1eed d\u1ee5ng git log \u0111\u1ec3 xem commit hash c\u1ee7a commit c\u1ea7n t\u1ea1o tag<\/span><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><span style=\"font-weight: 400;\">git log --pretty=oneline<\/span>\n\n<span style=\"font-weight: 400;\">#output<\/span>\n\n<span style=\"font-weight: 400;\">cb3w7957951b64cf874c3557a0d83b3gg6 Add page logout<\/span>\n\n<span style=\"font-weight: 400;\">1x62aaab4479697da7686c3d64d91654d0 Implement feature login<\/span>\n\n<span style=\"font-weight: 400;\">ge72a271eda8725415634dd794d9b60vke Merge branch develop<\/span><\/code><\/pre>\n\n\n\n<p><span style=\"font-weight: 400;\"><strong>B\u01b0\u1edbc 2:<\/strong> S\u1eed d\u1ee5ng git tag \u0111\u1ec3 \u0111\u00e1nh th\u1ebb cho v\u1ecb tr\u00ed commit \u0111\u00f3<\/span><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><span style=\"font-weight: 400;\">git tag -a v1.0.0 1x62aaab4479697da7686c3d64d91654d0<\/span><\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-ch\u1ec9nh-s\u1eeda-thay-th\u1ebf-tag\"><b>Ch\u1ec9nh s\u1eeda\/thay th\u1ebf tag<\/b><\/h3>\n\n\n\n<p><span style=\"font-weight: 400;\">Trong git, t\u00ean tag kh\u00f4ng \u0111\u01b0\u1ee3c tr\u00f9ng l\u1eb7p. V\u00ec v\u1eady khi b\u1ea1n c\u1ed1 g\u1eafng t\u1ea1o m\u1ed9t tag v\u1edbi t\u00ean tr\u00f9ng v\u1edbi m\u1ed9t tag \u0111\u00e3 t\u1ed3n t\u1ea1i, Git s\u1ebd b\u00e1o l\u1ed7i ngay l\u1eadp t\u1ee9c. Trong tr\u01b0\u1eddng h\u1ee3p b\u1ea1n b\u1eaft bu\u1ed9c ph\u1ea3i c\u1eadp nh\u1eadt m\u1ed9t tag hi\u1ec7n c\u00f3, t\u00f9y ch\u1ecdn <code>-f<\/code> (FORCE) ph\u1ea3i \u0111\u01b0\u1ee3c s\u1eed d\u1ee5ng:<\/span><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><span style=\"font-weight: 400;\">git tag -a -f &lt;t\u00ean tag&gt; &lt;commit hash&gt;<\/span><\/code><\/pre>\n\n\n\n<p><span style=\"font-weight: 400;\">Th\u1ef1c thi l\u1ec7nh tr\u00ean s\u1ebd \u00e1nh x\u1ea1 commit &lt;commit hash&gt; v\u1edbi tag &lt;t\u00ean tag&gt;, L\u1ec7nh n\u00e0y s\u1ebd ghi \u0111\u00e8 b\u1ea5t k\u1ef3 n\u1ed9i dung n\u00e0o hi\u1ec7n c\u00f3 c\u1ee7a tag.<\/span><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-qu\u1ea3n-ly-tag-tren-remote-repository\"><b>Qu\u1ea3n l\u00fd tag tr\u00ean remote repository<\/b><\/h3>\n\n\n\n<p><span style=\"font-weight: 400;\">Vi\u1ec7c chia s\u1ebb tag l\u00ean kho l\u01b0u tr\u1eef t\u1eeb xa t\u01b0\u01a1ng t\u1ef1 nh\u01b0 vi\u1ec7c \u0111\u1ea9y (push) branch. M\u1eb7c \u0111\u1ecbnh, l\u1ec7nh git push s\u1ebd kh\u00f4ng \u0111\u1ea9y tag. Tag ph\u1ea3i \u0111\u01b0\u1ee3c truy\u1ec1n r\u00f5 r\u00e0ng cho l\u1ec7nh git push.<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">Push tag m\u1edbi l\u00ean remote:<\/span><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><span style=\"font-weight: 400;\">git push origin &lt;t\u00ean tag&gt;<\/span><\/code><\/pre>\n\n\n\n<p><span style=\"font-weight: 400;\">Ho\u1eb7c push t\u1ea5t c\u1ea3 tag:<\/span><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><span style=\"font-weight: 400;\">git push origin --tags<\/span><\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-xoa-tag\"><b>X\u00f3a tag<\/b><\/h3>\n\n\n\n<p><span style=\"font-weight: 400;\">X\u00f3a tag l\u00e0 m\u1ed9t thao t\u00e1c \u0111\u01a1n gi\u1ea3n, ch\u00fang ta ch\u1ec9 c\u1ea7n s\u1eed d\u1ee5ng t\u00f9y ch\u1ecdn <code>-d<\/code> c\u00f9ng v\u1edbi t\u00ean tag trong l\u1ec7nh git tag:<\/span><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><span style=\"font-weight: 400;\">git tag -d &lt;t\u00ean tag&gt;<\/span><\/code><\/pre>\n\n\n\n<p><span style=\"font-weight: 400;\">V\u00ed d\u1ee5, \u0111\u1ec3 x\u00f3a m\u1ed9t tag c\u00f3 t\u00ean l\u00e0 v1.0.1, ta th\u1ef1c hi\u1ec7n nh\u01b0 sau:<\/span><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><span style=\"font-weight: 400;\">git tag -d v1.0.1<\/span><\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-cac-l\u01b0u-y-khi-s\u1eed-d\u1ee5ng-git-tag\"><span class=\"ez-toc-section\" id=\"Cac_luu_y_khi_su_dung_Git_Tag\"><\/span><b>C\u00e1c l\u01b0u \u00fd khi s\u1eed d\u1ee5ng Git Tag<\/b><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p><span style=\"font-weight: 400;\">\u0110\u1ed1i v\u1edbi c\u00e1c d\u1ef1 \u00e1n ph\u00e1t h\u00e0nh t\u00ednh n\u0103ng th\u01b0\u1eddng xuy\u00ean, th\u00ec vi\u1ec7c s\u1eed d\u1ee5ng git tag v\u00f4 c\u00f9ng quan tr\u1ecdng. Tuy nhi\u00ean, \u0111\u1ec3 vi\u1ec7c s\u1eed d\u1ee5ng git tag \u0111\u01b0\u1ee3c hi\u1ec7u qu\u1ea3 v\u00e0 n\u00e2ng cao ch\u1ea5t l\u01b0\u1ee3ng qu\u1ea3n l\u00fd phi\u00ean b\u1ea3n, c\u1ea7n l\u01b0u \u00fd nh\u1eefng \u0111i\u1ec1u sau:<\/span><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-l\u1ef1a-ch\u1ecdn-lo\u1ea1i-tag-phu-h\u1ee3p-v\u1edbi-nhu-c\u1ea7u\"><span style=\"font-weight: 400;\"><strong>L\u1ef1a ch\u1ecdn lo\u1ea1i tag ph\u00f9 h\u1ee3p v\u1edbi nhu c\u1ea7u<\/strong><\/span><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><span style=\"font-weight: 400;\">Annotated Tag: D\u00f9ng \u0111\u1ec3 l\u01b0u th\u00eam th\u00f4ng tin nh\u01b0 t\u00ean t\u00e1c gi\u1ea3, ng\u00e0y t\u1ea1o, v\u00e0 m\u1ed9t th\u00f4ng \u0111i\u1ec7p m\u00f4 t\u1ea3 (message). Th\u00edch h\u1ee3p cho c\u00e1c phi\u00ean b\u1ea3n ch\u00ednh th\u1ee9c.<\/span><\/li>\n\n\n\n<li><span style=\"font-weight: 400;\">Lightweight Tag: Ch\u1ec9 l\u01b0u hash commit, th\u00edch h\u1ee3p cho vi\u1ec7c \u0111\u00e1nh d\u1ea5u t\u1ea1m th\u1eddi.<\/span><\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-ki\u1ec3m-tra-chinh-xac-commit-tr\u01b0\u1edbc-khi-t\u1ea1o-tag-tranh-tr\u01b0\u1eddng-h\u1ee3p-tag-tham-chi\u1ebfu-d\u1ebfn-commit-khac\"><strong>Ki\u1ec3m tra ch\u00ednh x\u00e1c commit tr\u01b0\u1edbc khi t\u1ea1o tag, tr\u00e1nh tr\u01b0\u1eddng h\u1ee3p tag tham chi\u1ebfu \u0111\u1ebfn commit kh\u00e1c<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><span style=\"font-weight: 400;\">\u0110\u1ed1i v\u1edbi tr\u01b0\u1eddng h\u1ee3p t\u1ea1o tag ngay v\u1ecb tr\u00ed HEAD \u0111ang tham chi\u1ebfu, b\u1ea1n c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng git log \u0111\u1ec3 ki\u1ec3m tra commit m\u00e0 HEAD \u0111\u00e3 tr\u1ecf \u0111\u1ebfn:<\/span><\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code><span style=\"font-weight: 400;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; git <\/span><span style=\"font-weight: 400;\">log<\/span><\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li><span style=\"font-weight: 400;\">\u0110\u1ed1i v\u1edbi tr\u01b0\u1eddng h\u1ee3p t\u1ea1o tag cho m\u1ed9t commit \u0111\u01b0\u1ee3c ch\u1ec9 \u0111\u1ecbnh, b\u1ea1n c\u00f3 th\u1ec3 d\u00f9ng git show \u0111\u1ec3 xem th\u00f4ng tin commit<\/span><\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code><span style=\"font-weight: 400;\">git show &lt;commit-hash&gt;<\/span><\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-tuan-th\u1ee7-quy-t\u1eafc-d\u1eb7t-ten-d\u1ed3ng-nh\u1ea5t-cho-cac-tags-trong-d\u1ef1-an\"><span style=\"font-weight: 400;\"><strong>Tu\u00e2n th\u1ee7 quy t\u1eafc \u0111\u1eb7t t\u00ean \u0111\u1ed3ng nh\u1ea5t cho c\u00e1c tags trong d\u1ef1 \u00e1n<\/strong><\/span><\/h3>\n\n\n\n<p><span style=\"font-weight: 400;\">V\u00ed d\u1ee5:<\/span><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><span style=\"font-weight: 400;\">Quy t\u1eafc Semantic Versioning: v1.0.1, v1.0.2,&#8230;<\/span><\/li>\n\n\n\n<li><span style=\"font-weight: 400;\">Ho\u1eb7c d\u00f9ng th\u00eam ti\u1ec1n t\u1ed1 m\u00f4 t\u1ea3 nh\u01b0 <code>feature-<\/code>, <code>fix-<\/code>, <code>release-<\/code><\/span><\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-khong-ch\u1ec9nh-s\u1eeda-l\u1ecbch-s\u1eed-khi-s\u1eed-d\u1ee5ng-tag\"><strong>Kh\u00f4ng ch\u1ec9nh s\u1eeda l\u1ecbch s\u1eed khi s\u1eed d\u1ee5ng Tag<\/strong><\/h3>\n\n\n\n<p><span style=\"font-weight: 400;\">M\u1ed9t khi tag \u0111\u00e3 \u0111\u01b0\u1ee3c t\u1ea1o v\u00e0 s\u1eed d\u1ee5ng, kh\u00f4ng n\u00ean s\u1eeda \u0111\u1ed5i commit \u0111\u01b0\u1ee3c g\u1eafn tag \u0111\u1ec3 tr\u00e1nh xung \u0111\u1ed9t ho\u1eb7c nh\u1ea7m l\u1eabn.<\/span><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><em>\u0110\u1ecdc th\u00eam: <strong><a href=\"https:\/\/itviec.com\/blog\/ky-thuat-git-nang-cao\/\" target=\"_blank\" rel=\"noopener\">Top 10+ k\u1ef9 thu\u1eadt Git n\u00e2ng cao<\/a><\/strong><\/em><\/p>\n<\/blockquote>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-cac-cau-h\u1ecfi-th\u01b0\u1eddng-g\u1eb7p-v\u1ec1-git-tag\"><span class=\"ez-toc-section\" id=\"Cac_cau_hoi_thuong_gap_ve_Git_Tag\"><\/span><b>C\u00e1c c\u00e2u h\u1ecfi th\u01b0\u1eddng g\u1eb7p v\u1ec1 Git Tag<\/b><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-co-cach-nao-d\u1ec3-tim-commit-ma-git-tag-dang-tham-chi\u1ebfu-khong\"><b>C\u00f3 c\u00e1ch n\u00e0o \u0111\u1ec3 t\u00ecm commit m\u00e0 Git Tag \u0111ang tham chi\u1ebfu kh\u00f4ng?<\/b><\/h3>\n\n\n\n<p><span style=\"font-weight: 400;\">\u0110\u1ec3 t\u00ecm commit m\u00e0 m\u1ed9t <\/span><b>Git Tag<\/b><span style=\"font-weight: 400;\"> \u0111ang tham chi\u1ebfu, b\u1ea1n c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng c\u00e1c l\u1ec7nh d\u01b0\u1edbi \u0111\u00e2y:<\/span><\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"h-hi\u1ec3n-th\u1ecb-d\u1ea7y-d\u1ee7-thong-tin-commit\"><strong>Hi\u1ec3n th\u1ecb \u0111\u1ea7y \u0111\u1ee7 th\u00f4ng tin commit<\/strong><\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code><span style=\"font-weight: 400;\">git show &lt;tag_name&gt;<\/span><\/code><\/pre>\n\n\n\n<p><span style=\"font-weight: 400;\">L\u1ec7nh n\u00e0y s\u1ebd hi\u1ec3n th\u1ecb t\u1ea5t c\u1ea3 th\u00f4ng tin c\u1ee7a tag bao g\u1ed3m t\u00ean, ng\u00e0y t\u1ea1o, c\u00e1c metadata (n\u1ebfu c\u00f3) v\u00e0 th\u00f4ng tin commit \u0111ang tham chi\u1ebfu, v\u00ed d\u1ee5:<\/span><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><span style=\"font-weight: 400;\">tag v1.0.0<\/span>\n\n<span style=\"font-weight: 400;\">Tagger: Nguyen Van A &lt;example@itviec.com&gt;<\/span>\n\n<span style=\"font-weight: 400;\">Date: Fri Dec 22 10:42:19 2024 +0700<\/span>\n\n<span style=\"font-weight: 400;\">Release version 1.0.0<\/span>\n\n<span style=\"font-weight: 400;\">commit e4f2b12345f4rg90abcdef5xw24567890addef1 (HEAD -&gt; main, tag: v1.0.0)<\/span>\n\n<span style=\"font-weight: 400;\">Author: Nguyen Van A &lt;example@itviec.com&gt;<\/span>\n\n<span style=\"font-weight: 400;\">Date: Fri Jan 3 09:30:12 2025 +0700<\/span>\n\n<span style=\"font-weight: 400;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Add unit tests <\/span><span style=\"font-weight: 400;\">for<\/span><span style=\"font-weight: 400;\"> user service<\/span><\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"h-hi\u1ec3n-th\u1ecb-thong-tin-commit-d\u01b0\u1edbi-d\u1ea1ng-ng\u1eafn-g\u1ecdn\"><strong>Hi\u1ec3n th\u1ecb th\u00f4ng tin commit d\u01b0\u1edbi d\u1ea1ng ng\u1eafn g\u1ecdn<\/strong><\/h4>\n\n\n\n<p><span style=\"font-weight: 400;\">Tr\u01b0\u1eddng h\u1ee3p ch\u1ec9 mu\u1ed1n hi\u1ec3n th\u1ecb th\u00f4ng tin commit, b\u1ea1n c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng git log v\u1edbi t\u00f9y ch\u1ecdn <code>-l<\/code>:<\/span><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><span style=\"font-weight: 400;\">git <\/span><span style=\"font-weight: 400;\">log<\/span><span style=\"font-weight: 400;\"> -1 &lt;t\u00ean tag&gt;<\/span><\/code><\/pre>\n\n\n\n<p><span style=\"font-weight: 400;\">V\u00ed d\u1ee5 v\u1ec1 output:<\/span><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td>commit e4f2b12345f4rg90abcdef5xw24567890addef1 (tag: v1.0.1) Author: Nguyen Van A &lt;example@itviec.com><br>Date: Fri Dec 22 10:42:19 2024 +0700<br>\u00a0\u00a0\u00a0\u00a0\u00a0Add unit tests for user service<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"h-ch\u1ec9-c\u1ea7n-hi\u1ec3n-th\u1ecb-commit-hash\"><strong>Ch\u1ec9 c\u1ea7n hi\u1ec3n th\u1ecb commit hash<\/strong><\/h4>\n\n\n\n<p><span style=\"font-weight: 400;\">N\u1ebfu ch\u1ec9 c\u1ea7n hash c\u1ee7a commit m\u00e0 tag tham chi\u1ebfu, s\u1eed d\u1ee5ng l\u1ec7nh:<\/span><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><span style=\"font-weight: 400;\">git rev-parse &lt;tag_name&gt;<\/span><\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-git-tag-co-khac-gi-v\u1edbi-git-branch-khong\"><b>Git Tag c\u00f3 kh\u00e1c g\u00ec v\u1edbi Git Branch kh\u00f4ng?<\/b><\/h3>\n\n\n\n<p><span style=\"font-weight: 400;\">Git Tag v\u00e0 Git Branch \u0111\u1ec1u \u0111\u01b0\u1ee3c s\u1eed d\u1ee5ng \u0111\u1ec3 \u0111\u00e1nh d\u1ea5u c\u00e1c \u0111i\u1ec3m c\u1ee5 th\u1ec3 trong l\u1ecbch s\u1eed c\u1ee7a repository, nh\u01b0ng ch\u00fang ph\u1ee5c v\u1ee5 c\u00e1c m\u1ee5c \u0111\u00edch kh\u00e1c nhau v\u00e0 ho\u1ea1t \u0111\u1ed9ng kh\u00f4ng gi\u1ed1ng nhau.<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">D\u01b0\u1edbi \u0111\u00e2y l\u00e0 s\u1ef1 kh\u00e1c bi\u1ec7t chi ti\u1ebft:<\/span><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td><b>Ti\u00eau ch\u00ed<\/b><\/td><td><b>Git Tag<\/b><\/td><td><b>Git Branch<\/b><\/td><\/tr><tr><td><b>C\u00fa ph\u00e1p t\u1ea1o<\/b><\/td><td><span style=\"font-weight: 400;\">git tag &lt;t\u00f9y ch\u1ecdn&gt; &lt;t\u00ean tag&gt;<\/span><\/td><td><span style=\"font-weight: 400;\">git branch &lt;t\u00ean branch&gt;<\/span><\/td><\/tr><tr><td><b>C\u00e1ch ho\u1ea1t \u0111\u1ed9ng<\/b><\/td><td><span style=\"font-weight: 400;\">S\u1eed d\u1ee5ng \u0111\u1ec3 \u0111\u00e1nh d\u1ea5u m\u1ed9t commit c\u1ed1 \u0111\u1ecbnh, th\u01b0\u1eddng l\u00e0 c\u00e1c phi\u00ean b\u1ea3n ph\u00e1t h\u00e0nh<\/span><\/td><td><span style=\"font-weight: 400;\">L\u00e0 \u201ccon tr\u1ecf di \u0111\u1ed9ng\u201d tr\u1ecf \u0111\u1ebfn c\u00e1c commit m\u1edbi, t\u00e1ch lu\u1ed3ng l\u00e0m vi\u1ec7c kh\u1ecfi nh\u00e1nh ch\u00ednh<\/span><\/td><\/tr><tr><td><b>T\u00ednh c\u1ed1 \u0111\u1ecbnh<\/b><\/td><td><span style=\"font-weight: 400;\">Kh\u00f4ng thay \u0111\u1ed5i theo th\u1eddi gian, tag lu\u00f4n tham chi\u1ebfu \u0111\u1ebfn c\u00f9ng m\u1ed9t commit<\/span><\/td><td><span style=\"font-weight: 400;\">Branch thay \u0111\u1ed5i khi c\u00f3 commit m\u1edbi \u0111\u01b0\u1ee3c th\u00eam v\u00e0o<\/span><\/td><\/tr><tr><td><b>M\u1ee5c \u0111\u00edch s\u1eed d\u1ee5ng<\/b><\/td><td><span style=\"font-weight: 400;\">Ph\u00f9 h\u1ee3p \u0111\u1ec3 l\u01b0u tr\u1eef tr\u1ea1ng th\u00e1i quan tr\u1ecdng c\u1ee7a code, t\u1ea1o c\u00e1c phi\u00ean b\u1ea3n ph\u00e1t h\u00e0nh<\/span><\/td><td><span style=\"font-weight: 400;\">\u0110\u01b0\u1ee3c s\u1eed d\u1ee5ng \u0111\u1ec3 ph\u00e1t tri\u1ec3n t\u00ednh n\u0103ng, s\u1eeda l\u1ed7i, ho\u1eb7c th\u1ef1c hi\u1ec7n c\u00f4ng vi\u1ec7c tr\u00ean c\u00e1c nh\u00e1nh ri\u00eang bi\u1ec7t<\/span><\/td><\/tr><tr><td><b>Tr\u01b0\u1eddng h\u1ee3p s\u1eed d\u1ee5ng c\u1ee5 th\u1ec3<\/b><\/td><td><span style=\"font-weight: 400;\">T\u1ea1o tag cho phi\u00ean b\u1ea3n ph\u00e1t h\u00e0nh <\/span><b>v1.0.0<\/b><span style=\"font-weight: 400;\"> \u0111\u1ec3 x\u00e1c \u0111\u1ecbnh r\u00f5 r\u00e0ng phi\u00ean b\u1ea3n \u1ed5n \u0111\u1ecbnh c\u1ee7a \u1ee9ng d\u1ee5ng<\/span><\/td><td><span style=\"font-weight: 400;\">T\u1ea1o branch <\/span><b>feature\/users<\/b><span style=\"font-weight: 400;\"> \u0111\u1ec3 ph\u00e1t tri\u1ec3n t\u00ednh n\u0103ng qu\u1ea3n l\u00fd danh s\u00e1ch ng\u01b0\u1eddi d\u00f9ng<\/span><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-lam-sao-d\u1ec3-s\u1eeda-ho\u1eb7c-d\u1ed5i-ten-m\u1ed9t-git-tag\"><b>L\u00e0m sao \u0111\u1ec3 s\u1eeda ho\u1eb7c \u0111\u1ed5i t\u00ean m\u1ed9t Git Tag?<\/b><\/h3>\n\n\n\n<p><span style=\"font-weight: 400;\">Git kh\u00f4ng h\u1ed7 tr\u1ee3 \u0111\u1ed5i t\u00ean tr\u1ef1c ti\u1ebfp, v\u00ec v\u1eady \u0111\u1ec3 s\u1eeda ho\u1eb7c \u0111\u1ed5i t\u00ean m\u1ed9t Git Tag, b\u1ea1n c\u1ea7n th\u1ef1c hi\u1ec7n c\u00e1c b\u01b0\u1edbc x\u00f3a tag c\u0169 v\u00e0 t\u1ea1o tag m\u1edbi. D\u01b0\u1edbi \u0111\u00e2y l\u00e0 h\u01b0\u1edbng d\u1eabn chi ti\u1ebft:<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\"><strong>B\u01b0\u1edbc 1:<\/strong> Ki\u1ec3m tra th\u00f4ng tin commit \u0111ang \u0111\u01b0\u1ee3c tag tham chi\u1ebfu v\u00e0 c\u00e1c th\u00f4ng tin metadata c\u1ee7a tag (n\u1ebfu c\u00f3)<\/span><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><span style=\"font-weight: 400;\">git show &lt;t\u00ean tag&gt;<\/span><\/code><\/pre>\n\n\n\n<p><span style=\"font-weight: 400;\"><strong>B\u01b0\u1edbc 2:<\/strong> Th\u1ef1c hi\u1ec7n l\u1ec7nh x\u00f3a tag c\u0169<\/span><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><span style=\"font-weight: 400;\">git tag -d &lt;t\u00ean tag&gt;<\/span><\/code><\/pre>\n\n\n\n<p><span style=\"font-weight: 400;\"><strong>B\u01b0\u1edbc 3:<\/strong> T\u1ea1o tag m\u1edbi tham chi\u1ebfu \u0111\u1ebfn commit \u0111\u00e3 ki\u1ec3m tra \u1edf b\u01b0\u1edbc 1<\/span><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><span style=\"font-weight: 400;\">git tag &lt;t\u00ean tag m\u1edbi&gt; &lt;commit hash&gt;<\/span><\/code><\/pre>\n\n\n\n<p><span style=\"font-weight: 400;\">V\u00ed d\u1ee5, \u0111\u1ec3 x\u00f3a tag v0.1.0, ta th\u1ef1c hi\u1ec7n:<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\"><strong>B\u01b0\u1edbc 1:<\/strong> Xem th\u00f4ng tin commit v\u00e0 lo\u1ea1i tag<\/span><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><span style=\"font-weight: 400;\">git show v0.1.0<\/span><\/code><\/pre>\n\n\n\n<p><span style=\"font-weight: 400;\"><strong>B\u01b0\u1edbc 2:<\/strong> X\u00f3a tag v0.1.0<\/span><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><span style=\"font-weight: 400;\">git tag -d v0.1.0<\/span><\/code><\/pre>\n\n\n\n<p><span style=\"font-weight: 400;\"><strong>B\u01b0\u1edbc 3:<\/strong> T\u1ea1o l\u1ea1i tag v\u1edbi th\u00f4ng tin commit v\u00e0 metadata c\u0169<\/span><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><span style=\"font-weight: 400;\">git tag -a v0.0.1 e4f2b12345f4rg90abcdef5xw24567890addef1<\/span><\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-t\u1ed5ng-k\u1ebft\"><span class=\"ez-toc-section\" id=\"Tong_ket\"><\/span><b>T\u1ed5ng k\u1ebft<\/b><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p><span style=\"font-weight: 400;\">Git Tag l\u00e0 m\u1ed9t c\u00f4ng c\u1ee5 tuy\u1ec7t v\u1eddi gi\u00fap qu\u1ea3n l\u00fd phi\u00ean b\u1ea3n ph\u00e1t h\u00e0nh ho\u1eb7c \u0111\u00e1nh d\u1ea5u c\u00e1c \u0111i\u1ec3m quan tr\u1ecdng trong d\u1ef1 \u00e1n. Vi\u1ec7c s\u1eed d\u1ee5ng git tag \u0111\u00fang c\u00e1ch s\u1ebd gi\u00fap nh\u00f3m l\u00e0m vi\u1ec7c hi\u1ec7u qu\u1ea3 v\u00e0 khoa h\u1ecdc h\u01a1n.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Tagging l\u00e0 m\u1ed9t ch\u1ee9c n\u0103ng h\u1eefu \u00edch trong Git gi\u00fap vi\u1ec7c qu\u1ea3n l\u00fd c\u00e1c phi\u00ean b\u1ea3n ph\u00e1t h\u00e0nh \u0111\u01b0\u1ee3c linh ho\u1ea1t v\u00e0 ti\u1ec7n l\u1ee3i h\u01a1n. C\u00f9ng kh\u00e1m ph\u00e1 c\u00e1ch s\u1eed d\u1ee5ng Git tag hi\u1ec7u qu\u1ea3 \u0111\u1ec3 qu\u1ea3n l\u00fd phi\u00ean b\u1ea3n trong m\u00e3 ngu\u1ed3n, bao g\u1ed3m h\u01b0\u1edbng d\u1eabn chi ti\u1ebft v\u1ec1 qu\u1ea3n l\u00fd tag, t\u1ea1o, x\u00f3a, [&hellip;]<\/p>\n","protected":false},"author":235,"featured_media":84143,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_gspb_post_css":"","footnotes":""},"categories":[109],"tags":[],"class_list":["post-84083","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-chuyen-mon-it"],"blocksy_meta":[],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v26.8 (Yoast SEO v27.8) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Git Tag: H\u01b0\u1edbng d\u1eabn chi ti\u1ebft c\u00e1ch qu\u1ea3n l\u00fd phi\u00ean b\u1ea3n hi\u1ec7u qu\u1ea3 - ITviec Blog<\/title>\n<meta name=\"description\" content=\"Kh\u00e1m ph\u00e1 c\u00e1ch s\u1eed d\u1ee5ng Git tag \u0111\u1ec3 qu\u1ea3n l\u00fd phi\u00ean b\u1ea3n trong m\u00e3 ngu\u1ed3n. H\u01b0\u1edbng d\u1eabn chi ti\u1ebft v\u1ec1 qu\u1ea3n l\u00fd tag, t\u1ea1o, x\u00f3a, ch\u1ec9nh s\u1eeda m\u1ed9t tag.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/itviec.com\/blog\/git-tag-la-gi\/\" \/>\n<meta property=\"og:locale\" content=\"vi_VN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Git Tag: H\u01b0\u1edbng d\u1eabn chi ti\u1ebft c\u00e1ch qu\u1ea3n l\u00fd phi\u00ean b\u1ea3n hi\u1ec7u qu\u1ea3\" \/>\n<meta property=\"og:description\" content=\"Tagging l\u00e0 m\u1ed9t ch\u1ee9c n\u0103ng h\u1eefu \u00edch trong Git gi\u00fap vi\u1ec7c qu\u1ea3n l\u00fd c\u00e1c phi\u00ean b\u1ea3n ph\u00e1t h\u00e0nh \u0111\u01b0\u1ee3c linh ho\u1ea1t v\u00e0 ti\u1ec7n l\u1ee3i h\u01a1n. C\u00f9ng kh\u00e1m ph\u00e1 c\u00e1ch s\u1eed d\u1ee5ng Git tag\" \/>\n<meta property=\"og:url\" content=\"https:\/\/itviec.com\/blog\/git-tag-la-gi\/\" \/>\n<meta property=\"og:site_name\" content=\"ITviec Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/ITviec\" \/>\n<meta property=\"article:published_time\" content=\"2025-01-16T06:58:45+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-07-10T03:52:11+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/itviec.com\/blog\/wp-content\/uploads\/2025\/01\/Git-Tag-vippro.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1500\" \/>\n\t<meta property=\"og:image:height\" content=\"790\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Ph\u1ea1m H\u1eefu Ng\u1ecdc\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@ITviec\" \/>\n<meta name=\"twitter:site\" content=\"@ITviec\" \/>\n<meta name=\"twitter:label1\" content=\"\u0110\u01b0\u1ee3c vi\u1ebft b\u1edfi\" \/>\n\t<meta name=\"twitter:data1\" content=\"Ph\u1ea1m H\u1eefu Ng\u1ecdc\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u01af\u1edbc t\u00ednh th\u1eddi gian \u0111\u1ecdc\" \/>\n\t<meta name=\"twitter:data2\" content=\"11 ph\u00fat\" \/>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Git Tag: H\u01b0\u1edbng d\u1eabn chi ti\u1ebft c\u00e1ch qu\u1ea3n l\u00fd phi\u00ean b\u1ea3n hi\u1ec7u qu\u1ea3 - ITviec Blog","description":"Kh\u00e1m ph\u00e1 c\u00e1ch s\u1eed d\u1ee5ng Git tag \u0111\u1ec3 qu\u1ea3n l\u00fd phi\u00ean b\u1ea3n trong m\u00e3 ngu\u1ed3n. H\u01b0\u1edbng d\u1eabn chi ti\u1ebft v\u1ec1 qu\u1ea3n l\u00fd tag, t\u1ea1o, x\u00f3a, ch\u1ec9nh s\u1eeda m\u1ed9t tag.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/itviec.com\/blog\/git-tag-la-gi\/","og_locale":"vi_VN","og_type":"article","og_title":"Git Tag: H\u01b0\u1edbng d\u1eabn chi ti\u1ebft c\u00e1ch qu\u1ea3n l\u00fd phi\u00ean b\u1ea3n hi\u1ec7u qu\u1ea3","og_description":"Tagging l\u00e0 m\u1ed9t ch\u1ee9c n\u0103ng h\u1eefu \u00edch trong Git gi\u00fap vi\u1ec7c qu\u1ea3n l\u00fd c\u00e1c phi\u00ean b\u1ea3n ph\u00e1t h\u00e0nh \u0111\u01b0\u1ee3c linh ho\u1ea1t v\u00e0 ti\u1ec7n l\u1ee3i h\u01a1n. C\u00f9ng kh\u00e1m ph\u00e1 c\u00e1ch s\u1eed d\u1ee5ng Git tag","og_url":"https:\/\/itviec.com\/blog\/git-tag-la-gi\/","og_site_name":"ITviec Blog","article_publisher":"https:\/\/www.facebook.com\/ITviec","article_published_time":"2025-01-16T06:58:45+00:00","article_modified_time":"2025-07-10T03:52:11+00:00","og_image":[{"width":1500,"height":790,"url":"https:\/\/itviec.com\/blog\/wp-content\/uploads\/2025\/01\/Git-Tag-vippro.jpg","type":"image\/jpeg"}],"author":"Ph\u1ea1m H\u1eefu Ng\u1ecdc","twitter_card":"summary_large_image","twitter_creator":"@ITviec","twitter_site":"@ITviec","twitter_misc":{"\u0110\u01b0\u1ee3c vi\u1ebft b\u1edfi":"Ph\u1ea1m H\u1eefu Ng\u1ecdc","\u01af\u1edbc t\u00ednh th\u1eddi gian \u0111\u1ecdc":"11 ph\u00fat"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/itviec.com\/blog\/git-tag-la-gi\/#article","isPartOf":{"@id":"https:\/\/itviec.com\/blog\/git-tag-la-gi\/"},"author":{"name":"Ph\u1ea1m H\u1eefu Ng\u1ecdc","@id":"https:\/\/itviec.com\/blog\/#\/schema\/person\/407769a7625b7f955cef615f7a99abad"},"headline":"Git Tag: H\u01b0\u1edbng d\u1eabn chi ti\u1ebft c\u00e1ch qu\u1ea3n l\u00fd phi\u00ean b\u1ea3n hi\u1ec7u qu\u1ea3","datePublished":"2025-01-16T06:58:45+00:00","dateModified":"2025-07-10T03:52:11+00:00","mainEntityOfPage":{"@id":"https:\/\/itviec.com\/blog\/git-tag-la-gi\/"},"wordCount":2780,"publisher":{"@id":"https:\/\/itviec.com\/blog\/#organization"},"image":{"@id":"https:\/\/itviec.com\/blog\/git-tag-la-gi\/#primaryimage"},"thumbnailUrl":"https:\/\/itviec.com\/blog\/wp-content\/uploads\/2025\/01\/Git-Tag-vippro.jpg","articleSection":["Chuy\u00ean m\u00f4n IT"],"inLanguage":"vi"},{"@type":"WebPage","@id":"https:\/\/itviec.com\/blog\/git-tag-la-gi\/","url":"https:\/\/itviec.com\/blog\/git-tag-la-gi\/","name":"Git Tag: H\u01b0\u1edbng d\u1eabn chi ti\u1ebft c\u00e1ch qu\u1ea3n l\u00fd phi\u00ean b\u1ea3n hi\u1ec7u qu\u1ea3 - ITviec Blog","isPartOf":{"@id":"https:\/\/itviec.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/itviec.com\/blog\/git-tag-la-gi\/#primaryimage"},"image":{"@id":"https:\/\/itviec.com\/blog\/git-tag-la-gi\/#primaryimage"},"thumbnailUrl":"https:\/\/itviec.com\/blog\/wp-content\/uploads\/2025\/01\/Git-Tag-vippro.jpg","datePublished":"2025-01-16T06:58:45+00:00","dateModified":"2025-07-10T03:52:11+00:00","description":"Kh\u00e1m ph\u00e1 c\u00e1ch s\u1eed d\u1ee5ng Git tag \u0111\u1ec3 qu\u1ea3n l\u00fd phi\u00ean b\u1ea3n trong m\u00e3 ngu\u1ed3n. H\u01b0\u1edbng d\u1eabn chi ti\u1ebft v\u1ec1 qu\u1ea3n l\u00fd tag, t\u1ea1o, x\u00f3a, ch\u1ec9nh s\u1eeda m\u1ed9t tag.","breadcrumb":{"@id":"https:\/\/itviec.com\/blog\/git-tag-la-gi\/#breadcrumb"},"inLanguage":"vi","potentialAction":[{"@type":"ReadAction","target":["https:\/\/itviec.com\/blog\/git-tag-la-gi\/"]}]},{"@type":"ImageObject","inLanguage":"vi","@id":"https:\/\/itviec.com\/blog\/git-tag-la-gi\/#primaryimage","url":"https:\/\/itviec.com\/blog\/wp-content\/uploads\/2025\/01\/Git-Tag-vippro.jpg","contentUrl":"https:\/\/itviec.com\/blog\/wp-content\/uploads\/2025\/01\/Git-Tag-vippro.jpg","width":1500,"height":790},{"@type":"BreadcrumbList","@id":"https:\/\/itviec.com\/blog\/git-tag-la-gi\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Chuy\u00ean m\u00f4n IT","item":"https:\/\/itviec.com\/blog\/chuyen-mon-it\/"},{"@type":"ListItem","position":2,"name":"Git Tag: H\u01b0\u1edbng d\u1eabn chi ti\u1ebft c\u00e1ch qu\u1ea3n l\u00fd phi\u00ean b\u1ea3n hi\u1ec7u qu\u1ea3"}]},{"@type":"WebSite","@id":"https:\/\/itviec.com\/blog\/#website","url":"https:\/\/itviec.com\/blog\/","name":"ITviec Blog","description":"IT Jobs &amp; People in Vietnam","publisher":{"@id":"https:\/\/itviec.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/itviec.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"vi"},{"@type":"Organization","@id":"https:\/\/itviec.com\/blog\/#organization","name":"ITviec","url":"https:\/\/itviec.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"vi","@id":"https:\/\/itviec.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/itviec.com\/blog\/wp-content\/uploads\/2018\/12\/itviec-black-square-facebook.png","contentUrl":"https:\/\/itviec.com\/blog\/wp-content\/uploads\/2018\/12\/itviec-black-square-facebook.png","width":1800,"height":1800,"caption":"ITviec"},"image":{"@id":"https:\/\/itviec.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/ITviec","https:\/\/x.com\/ITviec","https:\/\/www.linkedin.com\/company\/itviec","https:\/\/www.youtube.com\/channel\/UCYthAQ3bcGr57M_ag5gHDvQ"]},{"@type":"Person","@id":"https:\/\/itviec.com\/blog\/#\/schema\/person\/407769a7625b7f955cef615f7a99abad","name":"Ph\u1ea1m H\u1eefu Ng\u1ecdc","image":{"@type":"ImageObject","inLanguage":"vi","@id":"https:\/\/itviec.com\/blog\/wp-content\/uploads\/2024\/03\/Pham-Huu-Ngoc-technical-content-reviewer-e1712135841473-100x100.jpg","url":"https:\/\/itviec.com\/blog\/wp-content\/uploads\/2024\/03\/Pham-Huu-Ngoc-technical-content-reviewer-e1712135841473-100x100.jpg","contentUrl":"https:\/\/itviec.com\/blog\/wp-content\/uploads\/2024\/03\/Pham-Huu-Ngoc-technical-content-reviewer-e1712135841473-100x100.jpg","caption":"Ph\u1ea1m H\u1eefu Ng\u1ecdc"},"url":"https:\/\/itviec.com\/blog\/author\/pham-huu-ngoc-2\/"}]}},"_links":{"self":[{"href":"https:\/\/itviec.com\/blog\/wp-json\/wp\/v2\/posts\/84083","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/itviec.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itviec.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itviec.com\/blog\/wp-json\/wp\/v2\/users\/235"}],"replies":[{"embeddable":true,"href":"https:\/\/itviec.com\/blog\/wp-json\/wp\/v2\/comments?post=84083"}],"version-history":[{"count":2,"href":"https:\/\/itviec.com\/blog\/wp-json\/wp\/v2\/posts\/84083\/revisions"}],"predecessor-version":[{"id":89234,"href":"https:\/\/itviec.com\/blog\/wp-json\/wp\/v2\/posts\/84083\/revisions\/89234"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/itviec.com\/blog\/wp-json\/wp\/v2\/media\/84143"}],"wp:attachment":[{"href":"https:\/\/itviec.com\/blog\/wp-json\/wp\/v2\/media?parent=84083"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itviec.com\/blog\/wp-json\/wp\/v2\/categories?post=84083"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itviec.com\/blog\/wp-json\/wp\/v2\/tags?post=84083"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}