[{"data":1,"prerenderedAt":152},["ShallowReactive",2],{"term-c\u002Fcheckout":3,"related-c\u002Fcheckout":144},{"id":4,"title":5,"acronym":6,"body":7,"category":60,"description":127,"difficulty":128,"extension":129,"letter":130,"meta":131,"navigation":132,"path":133,"related":134,"seo":138,"sitemap":139,"stem":142,"subcategory":6,"__hash__":143},"terms\u002Fterms\u002Fc\u002Fcheckout.md","Checkout",null,{"type":8,"value":9,"toc":121},"minimark",[10,15,19,23,39,43,110,114,117],[11,12,14],"h2",{"id":13},"eli5-the-vibe-check","ELI5 — The Vibe Check",[16,17,18],"p",{},"Checkout is like teleporting to a different branch or going back in time to an old version. When you checkout a branch, all your files change to match that branch. It's how you switch between different workspaces.",[11,20,22],{"id":21},"real-talk","Real Talk",[16,24,25,26,30,31,34,35,38],{},"Checkout switches your working directory to a different branch or commit. In modern Git, ",[27,28,29],"code",{},"git switch"," is preferred for branch switching and ",[27,32,33],{},"git restore"," for file restoration, though ",[27,36,37],{},"checkout"," still works for both.",[11,40,42],{"id":41},"show-me-the-code","Show Me The Code",[44,45,50],"pre",{"className":46,"code":47,"language":48,"meta":49,"style":49},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","git checkout main\ngit checkout -b new-feature\n# Modern alternatives:\ngit switch main\ngit switch -c new-feature\n","bash","",[27,51,52,68,81,88,98],{"__ignoreMap":49},[53,54,57,61,65],"span",{"class":55,"line":56},"line",1,[53,58,60],{"class":59},"sBMFI","git",[53,62,64],{"class":63},"sfazB"," checkout",[53,66,67],{"class":63}," main\n",[53,69,71,73,75,78],{"class":55,"line":70},2,[53,72,60],{"class":59},[53,74,64],{"class":63},[53,76,77],{"class":63}," -b",[53,79,80],{"class":63}," new-feature\n",[53,82,84],{"class":55,"line":83},3,[53,85,87],{"class":86},"sHwdD","# Modern alternatives:\n",[53,89,91,93,96],{"class":55,"line":90},4,[53,92,60],{"class":59},[53,94,95],{"class":63}," switch",[53,97,67],{"class":63},[53,99,101,103,105,108],{"class":55,"line":100},5,[53,102,60],{"class":59},[53,104,95],{"class":63},[53,106,107],{"class":63}," -c",[53,109,80],{"class":63},[11,111,113],{"id":112},"when-youll-hear-this","When You'll Hear This",[16,115,116],{},"\"Checkout the main branch first.\" \u002F \"I need to checkout that old commit to see what happened.\"",[118,119,120],"style",{},"html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":49,"searchDepth":70,"depth":70,"links":122},[123,124,125,126],{"id":13,"depth":70,"text":14},{"id":21,"depth":70,"text":22},{"id":41,"depth":70,"text":42},{"id":112,"depth":70,"text":113},"Checkout is like teleporting to a different branch or going back in time to an old version.","beginner","md","c",{},true,"\u002Fterms\u002Fc\u002Fcheckout",[135,136,137],"Branch","Switch","Stash",{"title":5,"description":127},{"changefreq":140,"priority":141},"weekly",0.7,"terms\u002Fc\u002Fcheckout","JcPGp0DDOvaofpm3fvRsRkv2IUhltTJ5A1r3nCJOlPw",[145,148],{"title":135,"path":146,"acronym":6,"category":60,"difficulty":128,"description":147},"\u002Fterms\u002Fb\u002Fbranch","A branch is like creating a parallel universe for your code.",{"title":137,"path":149,"acronym":6,"category":60,"difficulty":150,"description":151},"\u002Fterms\u002Fs\u002Fstash","intermediate","Stash is like putting your messy work in a drawer temporarily.",1776518264892]