PageSourceSearch

https://nulab.com/component---src-templates-git-tutorial-tsx-conte…-2-annotate-tag-mdx-b8b47c726bb374a937b5.js

js nulab.com collected 2026-10-01 10:14:40 UTC 5,822 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="ecba3b0f-938e-43e9-9954-52f4936a6913",e._sentryDebugIdIdentifier="sentry-dbid-ecba3b0f-938e-43e9-9954-52f4936a6913")}catch(e){}}();var _global="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};_global.SENTRY_RELEASE={id:"f8340dc3a39dcf8b31db189813adfa4fc86584ec"},(self.webpackChunknulab_website_react=self.webpackChunknulab_website_react||[]).push([[10599],{12980:function(e,t,n){n.r(t),n.d(t,{Head:function(){return f.p},default:function(){return A}});var a=n(35714),l=n(96540);function o(e){const t=Object.assign({p:"p",code:"code",pre:"pre",span:"span"},(0,a.RP)(),e.components);return l.createElement(l.Fragment,null,l.createElement(t.p,null,"Podemos añadir una anotación a una etiqueta ejecutando el ",l.createElement("a",{href:"/es/learn/software-development/git-tutorial/git-commands-settings/tag-commands/#create-tag",target:"_blank"},"comando git tag")," con la opción ",l.createElement(t.code,null,"-a"),", que abre el editor de texto predeterminado que permite añadir notas."),"\n",l.createElement(t.p,null,"También puede utilizar la opción ",l.createElement(t.code,null,"-am")," en su lugar si desea añadir la nota junto a la creación de la etiqueta."),"\n",l.createElement(t.p,null,"Ejecute el siguiente comando para añadir una etiqueta para HEAD llamada ",l.createElement(t.code,null,"tag2")," con algunas notas:"),"\n",l.createElement(t.pre,null,l.createElement(t.code,null,'$ git tag -am "Simple Git tutorial for beginners" tag2\n')),"\n",l.createElement(t.p,null,"Utilizando la opción ",l.createElement(t.code,null,"-n")," obtendrá la lista de etiquetas con sus notas para este repositorio."),"\n",l.createElement(t.pre,null,l.createElement(t.code,null,"$ git tag -n\n  tag1           first commit\n  tag2          Simple Git tutorial for beginners\n")),"\n",l.createElement(t.span,{dangerouslySetInnerHTML:{__html:'<span\n      class="gatsby-resp-image-wrapper"\n      style="position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 800px; "\n    >
1\n      <span\n    class="gatsby-resp-image-background-image"\n    style="padding-bottom: 36.50000000000001%; position: relative; bottom: 0; left: 0; background-image: url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAHCAYAAAAIy204AAAACXBIWXMAABYlAAAWJQFJUiTwAAABD0lEQVR42p1QPU/DMBDND0Lwz9gRA7Cw8gMAqYpEVARszAxdWJiAiKptFoaACkHYaZrEZ9+rHadVgEw86az7ePf0fEFg8RTH+9oYSClLIQQJ8U0ir0iUIFEQCVnY2sYSPuTCc4RQdsd8Zll5FoZbwRpJkhzCQ4GNz7IHYHwCpLe2KAH6AJJzYHoKVPOWbti9dV1TOBzubASnHUG2Th2L81dwegf+egbd70LPLsDZI/htBFZ5wzHGC1ZVTVF0td3vsAVzw4XMFzg+2sPN9eWP/pq2cRh2HPYJwi267xuN0UuM2Xvats0/BTuY6yVyU/eN+gXHk8mBG2itFRHhd7A21qj+01dKsTtBURQ0GETNDVdxc9WvHQ9KswAAAABJRU5ErkJggg==\'); background-size: cover; display: block;"\n  ></span>\n  <img\n        class="gatsby-resp-image-image"\n        alt="Add a tag with an annotation &quot;tag2&quot; to a commit which HEAD is pointing out now."\n        title=""\n        src="/static/7e388995b20475ac8a636eb5d35826fa/5a190/01.png"\n        srcset="/static/7e388995b20475ac8a636eb5d35826fa/772e8/01.png 200w,\n/static/7e388995b20475ac8a636eb5d35826fa/e17e5/01.png 400w,\n/static/7e388995b20475ac8a636eb5d35826fa/5a190/01.png 800w,\n/static/7e388995b20475ac8a636eb5d35826fa/c1b63/01.png 1200w,\n/static/7e388995b20475ac8a636eb5d35826fa/21b4d/01.png 1280w"\n        sizes="(max-width: 800px) 100vw, 800px"\n        style="width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;"\n        loading="lazy"\n        decoding="async"\n      />\n    </span>'}}))}var i=function(e={}){const{wrapper:t}=Object.assign({},(0,a.RP)(),e.components);return t?l.createElement(t,e,l.createElement(o,e)):o(e)},r=n(35703),s=n(60771),d=n(31320),c=n(31298),u=n(93804),g=n(61564),p=n(15926),m=n(88462),f=n(8719);const b=({data:e,pageContext:t,children:n,location:o})=>{var i,f,b;if("undefined"!=typeof window&&(0,m.A)(o.hash,o.pathname))return l.createElement(l.Fragment,null);const{prev:A,next:w,parent:E,grandParent:y,language:v}=t,h=null==e||null===(i=e.tutorialPostData)||void 0===i?void 0:i.nodes[0],P=null==e||null===(f=e.tutorialListData)||void 0===f?void 0:f.nodes,H=(0,d.A)(P);let k=null==h?void 0:h.frontmatter.description;if(!k){const e=h.body.replace(/<[^>]*(>|$)/g,"").split("\n");for(let t=0;t<e.length;t++)if(e[t].length>0){k=e[t];break}}const R={id:null==h?void 0:h.id,title:null==h?void 0:h.frontmatter.title,description:k,slug:null==h?void 0:h.frontmatter.slug,content:n,category:{name:"Software Development",slug:"software-development"},contentType:{name:"Guides",slug:"guides"},productType:"Backlog",language:v,noPaging:null==h||null===(b=h.frontmatter)||void 0===b?void 0:b.noPaging,prevPost:A?{title:A.frontmatter.title,url:null==A?void 0:A.frontmatter.slug}:null,nextPost:w?{title:w.frontmatter.title,url:null==w?void 0:w.frontmatter.slug}:null,parentPost:E?{title:E.title,url:E.slug}:null,grandParentPost:y?{title:y.title,url:y.slug}:null},T="undefined"!=typeof window?window.location.href:"";return l.createElement(l.Fragment,null,l.createElement(r.GatsbySeo,{title:R.title+" | Git tutorial | Nulab",description:k,metaTags:[{property:"og:title",content:R.title+" | Git tutorial | Nulab"},{property:"og:type",content:"article"},{property:"og:site_name",content:"Nulab"},{property:"og:image",content:"https://nulab.com/images/learn/cover_git-tutorial.png"},{property:"og:url",content:T}]}),l.createElement(a.xA,{components:{Note:c.A,MoreGuides:u.A,RelatedPosts:g.A,ToC:p.A}},l.createElement(s.A,{post:R,tutorialList:H})))};function A(e){return l.createElement(b,e,l.createElement(i,e))}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.