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]="be38b5e3-565e-472b-8fde-35b2858e4126",e._sentryDebugIdIdentifier="sentry-dbid-be38b5e3-565e-472b-8fde-35b2858e4126")}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([[5196],{60183:function(e,t,n){n.r(t),n.d(t,{Head:function(){return b.p},default:function(){return h}});var a=n(35714),l=n(96540);function i(e){const t=Object.assign({p:"p",code:"code",pre:"pre",span:"span"},(0,a.RP)(),e.components),{Note:n}=t;return n||function(e,t){throw new Error("Expected "+(t?"component":"object")+" `"+e+"` to be defined: you likely forgot to import, pass, or provide it.")}("Note",!0),l.createElement(l.Fragment,null,l.createElement(t.p,null,"Bạn vừa ",l.createElement("a",{href:"/vi/learn/software-development/git-tutorial/how-to-use-git/branching/create-branch/",target:"_blank"},"tạo má»t nhánh"),"; bây giá» bạn sẽ cần chuyá»n sang nhánh Äó Äá» thêm các cam kết má»i và o nhánh Äó."),"\n",l.createElement(t.p,null,"Sá» dụng ",l.createElement("a",{href:"/vi/learn/software-development/git-tutorial/git-commands-settings/remote-git-commands/#checkout-branches-from-remote-repository",target:"_blank"},"lá»nh git checkout")," Äá» chuyá»n sang nhánh ",l.createElement(t.code,null,"issue1"),"."),"\n",l.createElement(t.pre,null,l.createElement(t.code,null,"$ git checkout issue1\nSwitched to branch 'issue1'\n")),"\n",l.createElement(t.p,null,"Bây giá», lá»ch sá» trông như thế nà y:"),"\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,iVBORw0KGgoAAAANSUhEUgAAABQAAAAHCAYAAAAIy204AAAACXBIWXMAABYlAAAWJQFJUiTwAAAA1klEQVR42p2QOQsCMRSE90eK/hFr/4JYWthYCHYenaBosR6g4HaCIouFxSJiVlbYvCRjsofH4oUDk1e8zJchlqVl23aOMQbf97meFPtE7BwQd7skNg3SO7rv7k4yMAwr1WK5LCCWREbTbhmDehFCKrxRlDGMl0ClFFLrA+3eCLVmC5w4Hne3O9+A6bNpH48C7EKGD/oNmNSN5sRzUdk66OzXupX8H6iSnt7liOG4BMftZ/q/Ac7m87z5DyGEJCI8WUjIMABWVaiDA9Is4uFtbzImaxgGdgU4c9fjjn10HwAAAABJRU5ErkJggg==\'); background-size: cover; display: block;"\n ></span>\n <img\n class="gatsby-resp-image-image"\n alt="Current history"\n title=""\n src="/static/9530858c9cb0d4e30570607f7797d309/5a190/01.png"\n srcset="/static/9530858c9cb0d4e30570607f7797d309/772e8/01.png 200w,\n/static/9530858c9cb0d4e30570607f7797d309/e17e5/01.png 400w,\n/static/9530858c9cb0d4e30570607f7797d309/5a190/01.png 800w,\n/static/9530858c9cb0d4e30570607f7797d309/c1b63/01.png 1200w,\n/static/9530858c9cb0d4e30570607f7797d309/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>'}}),"\n",l.createElement(n,null,l.createElement(t.p,null,"Sá» dụng tùy chá»n ",l.createElement(t.code,null,"-b")," Äá» tạo má»t nhánh má»i và chuyá»n sang nhánh Äó bằng má»t lá»nh.")),"\n",l.createElement(t.p,null,"Tiếp theo, hãy thêm má»t cam kết. Thêm phần chữ in Äáºm bên dưá»i và o tá»p ",l.createElement(t.code,null,"myfile.txt"),"."),"\n",l.createElement("pre",null,l.createElement("code",null,l.createElement(t.p,null,"Anyone can learn Git with this tutorial and Backlog\n",l.createElement("b",null,"add: Register a change in an index")))),"\n",l.createElement(t.p,null,"Và cam kết thay Äá»i."),"\n",l.createElement(t.pre,null,l.createElement(t.code,null,'$ git add myfile.txt\n$ git commit -m "append description of the add command"\n[issue1 b2b23c4] append description of the add command\n 1 files changed, 1 insertions(+), 0 deletions(-)\n')),"\n",l.createElement(t.p,null,"Lá»ch sá» bây giá» trông như thế nà y:"),"\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,iVBORw0KGgoAAAANSUhEUgAAABQAAAAHCAYAAAAIy204AAAACXBIWXMAABYlAAAWJQFJUiTwAAABBElEQVR42p2Qz07DMAzG+0AIHpAD48+NV+AwFama4MoJuHJEQqBK07aepjIV6NJWbdPGST6SjFKmdRc+yUrs2D879jyjtzA8lkqhKAqe5zmZk77SlFZJQizLyMYyY/muCZOrTC6/8v0Dr1MURSNsJJQBW90/PGJ0eo44fne+1hoDcsG2bcmfTI5+gfMB4IqleFqEYE2FuCyxXAPqh2nh1kyuizRNS0Fwezg4YdeaK8IH1ailwJo3mH7WWJQMiWmg+mn7Cf0/Ew4B+4pN8bLOcPF8g8vXO9OE/g/cgr+cQUfX3b/3A6ez2Yl9kFIKIsI+k5xBNoW5S+cLIbTdZVVVNB4HboffipXVvqs6cNQAAAAASUVORK5CYII=\'); background-size: cover; display: block;"\n ></span>\n <img\n class="gatsby-resp-image-image"\n alt="Current history"\n title=""\n src="/static/c00296e4ba8c39e649e34e10a489c82c/5a190/02.png"\n srcset="/static/c00296e4ba8c39e649e34e10a489c82c/772e8/02.png 200w,\n/static/c00296e4ba8c39e649e34e10a489c82c/e17e5/02.png 400w,\n/static/c00296e4ba8c39e649e34e10a489c82c/5a190/02.png 800w,\n/static/c00296e4ba8c39e649e34e10a489c82c/c1b63/02.png 1200w,\n/static/c00296e4ba8c39e649e34e10a489c82c/21b4d/02.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 o=function(e={}){const{wrapper:t}=Object.assign({},(0,a.RP)(),e.components);return t?l.createElement(t,e,l.createElement(i,e)):i(e)};var r=n(35703),c=n(60771),s=n(31320),d=n(31298),g=n(93804),p=n(61564),u=n(15926),m=n(88462),b=n(8719);const A=({data:e,pageContext:t,children:n,location:i})=>{var o,b,A;if("undefined"!=typeof window&&(0,m.A)(i.hash,i.pathname))return l.createElement(l.Fragment,null);const{prev:h,next:f,parent:y,grandParent:w,language:E}=t,v=null==e||null===(o=e.tutorialPostData)||void 0===o?void 0:o.nodes[0],k=null==e||null===(b=e.tutorialListData)||void 0===b?void 0:b.nodes,C=(0,s.A)(k);let I=null==v?void 0:v.frontmatter.description;if(!I){const e=v.body.replace(/<[^>]*(>|$)/g,"").split("\n");for(let t=0;t<e.length;t++)if(e[t].length>0){I=e[t];break}}const B={id:null==v?void 0:v.id,title:null==v?void 0:v.frontmatter.title,description:I,slug:null==v?void 0:v.frontmatter.slug,content:n,category:{name:"Software Development",slug:"software-development"},contentType:{name:"Guides",slug:"guides"},productType:"Backlog",language:E,noPaging:null==v||null===(A=v.frontmatter)||void 0===A?void 0:A.noPaging,prevPost:h?{title:h.frontmatter.title,url:null==h?void 0:h.frontmatter.slug}:null,nextPost:f?{title:f.frontmatter.title,url:null==f?void 0:f.frontmatter.slug}:null,parentPost:y?{title:y.title,url:y.slug}:null,grandParentPost:w?{title:w.title,url:w.slug}:null},x="undefined"!=typeof window?window.location.href:"";return l.createElement(l.Fragment,null,l.createElement(r.GatsbySeo,{title:B.title+" | Git tutorial | Nulab",description:I,metaTags:[{property:"og:title",content:B.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:x}]}),l.createElement(a.xA,{components:{Note:d.A,MoreGuides:g.A,RelatedPosts:p.A,ToC:u.A}},l.createElement(c.A,{post:B,tutorialList:C})))};function h(e){return l.createElement(A,e,l.createElement(o,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.