[{"data":1,"prerenderedAt":128},["ShallowReactive",2],{"term-w\u002Fworktree":3,"related-w\u002Fworktree":116},{"id":4,"title":5,"acronym":6,"body":7,"category":48,"description":99,"difficulty":100,"extension":101,"letter":102,"meta":103,"navigation":104,"path":105,"related":106,"seo":110,"sitemap":111,"stem":114,"subcategory":6,"__hash__":115},"terms\u002Fterms\u002Fw\u002Fworktree.md","Worktree",null,{"type":8,"value":9,"toc":93},"minimark",[10,15,19,23,26,30,82,86,89],[11,12,14],"h2",{"id":13},"eli5-the-vibe-check","ELI5 — The Vibe Check",[16,17,18],"p",{},"A worktree lets you have multiple branches checked out at the same time in different folders. Instead of stashing your work and switching branches, you just open a different folder. Like having multiple desks for different tasks.",[11,20,22],{"id":21},"real-talk","Real Talk",[16,24,25],{},"Git worktrees allow you to check out multiple branches simultaneously in separate directories linked to the same repository. This avoids the overhead of stashing\u002Fswitching and enables parallel development.",[11,27,29],{"id":28},"show-me-the-code","Show Me The Code",[31,32,37],"pre",{"className":33,"code":34,"language":35,"meta":36,"style":36},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","git worktree add ..\u002Fhotfix-dir hotfix-branch\n# Work in ..\u002Fhotfix-dir while main stays in .\ngit worktree remove ..\u002Fhotfix-dir\n","bash","",[38,39,40,62,69],"code",{"__ignoreMap":36},[41,42,45,49,53,56,59],"span",{"class":43,"line":44},"line",1,[41,46,48],{"class":47},"sBMFI","git",[41,50,52],{"class":51},"sfazB"," worktree",[41,54,55],{"class":51}," add",[41,57,58],{"class":51}," ..\u002Fhotfix-dir",[41,60,61],{"class":51}," hotfix-branch\n",[41,63,65],{"class":43,"line":64},2,[41,66,68],{"class":67},"sHwdD","# Work in ..\u002Fhotfix-dir while main stays in .\n",[41,70,72,74,76,79],{"class":43,"line":71},3,[41,73,48],{"class":47},[41,75,52],{"class":51},[41,77,78],{"class":51}," remove",[41,80,81],{"class":51}," ..\u002Fhotfix-dir\n",[11,83,85],{"id":84},"when-youll-hear-this","When You'll Hear This",[16,87,88],{},"\"Use a worktree for the hotfix so you don't lose your current work.\"",[90,91,92],"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":36,"searchDepth":64,"depth":64,"links":94},[95,96,97,98],{"id":13,"depth":64,"text":14},{"id":21,"depth":64,"text":22},{"id":28,"depth":64,"text":29},{"id":84,"depth":64,"text":85},"A worktree lets you have multiple branches checked out at the same time in different folders.","advanced","md","w",{},true,"\u002Fterms\u002Fw\u002Fworktree",[107,108,109],"Branch","Stash","Checkout",{"title":5,"description":99},{"changefreq":112,"priority":113},"weekly",0.7,"terms\u002Fw\u002Fworktree","6TZY6cpMSqQOH_E3zrN3GQ3DeUIwkUFO7MENDIGyuTk",[117,121,124],{"title":107,"path":118,"acronym":6,"category":48,"difficulty":119,"description":120},"\u002Fterms\u002Fb\u002Fbranch","beginner","A branch is like creating a parallel universe for your code.",{"title":109,"path":122,"acronym":6,"category":48,"difficulty":119,"description":123},"\u002Fterms\u002Fc\u002Fcheckout","Checkout is like teleporting to a different branch or going back in time to an old version.",{"title":108,"path":125,"acronym":6,"category":48,"difficulty":126,"description":127},"\u002Fterms\u002Fs\u002Fstash","intermediate","Stash is like putting your messy work in a drawer temporarily.",1776518258871]