[{"data":1,"prerenderedAt":135},["ShallowReactive",2],{"term-s\u002Fstaging-area":3,"related-s\u002Fstaging-area":125},{"id":4,"title":5,"acronym":6,"body":7,"category":55,"description":108,"difficulty":109,"extension":110,"letter":111,"meta":112,"navigation":113,"path":114,"related":115,"seo":119,"sitemap":120,"stem":123,"subcategory":6,"__hash__":124},"terms\u002Fterms\u002Fs\u002Fstaging-area.md","Staging Area",null,{"type":8,"value":9,"toc":102},"minimark",[10,15,24,28,34,38,91,95,98],[11,12,14],"h2",{"id":13},"eli5-the-vibe-check","ELI5 — The Vibe Check",[16,17,18,19,23],"p",{},"The staging area is like a shopping cart. Before you 'buy' (commit) your changes, you put them in the cart first with ",[20,21,22],"code",{},"git add",". This lets you pick exactly which changes to include in your next commit instead of committing everything at once.",[11,25,27],{"id":26},"real-talk","Real Talk",[16,29,30,31,33],{},"The staging area (also called 'index') is an intermediate area between your working directory and repository. Files are added to the staging area with ",[20,32,22],{}," before being committed. This allows selective commits.",[11,35,37],{"id":36},"show-me-the-code","Show Me The Code",[39,40,45],"pre",{"className":41,"code":42,"language":43,"meta":44,"style":44},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","git add src\u002Flogin.vue    # stage one file\ngit add .                # stage everything\ngit status               # see what's staged\n","bash","",[20,46,47,67,80],{"__ignoreMap":44},[48,49,52,56,60,63],"span",{"class":50,"line":51},"line",1,[48,53,55],{"class":54},"sBMFI","git",[48,57,59],{"class":58},"sfazB"," add",[48,61,62],{"class":58}," src\u002Flogin.vue",[48,64,66],{"class":65},"sHwdD","    # stage one file\n",[48,68,70,72,74,77],{"class":50,"line":69},2,[48,71,55],{"class":54},[48,73,59],{"class":58},[48,75,76],{"class":58}," .",[48,78,79],{"class":65},"                # stage everything\n",[48,81,83,85,88],{"class":50,"line":82},3,[48,84,55],{"class":54},[48,86,87],{"class":58}," status",[48,89,90],{"class":65},"               # see what's staged\n",[11,92,94],{"id":93},"when-youll-hear-this","When You'll Hear This",[16,96,97],{},"\"Stage your changes with git add.\" \u002F \"Only stage the files you actually changed.\"",[99,100,101],"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":44,"searchDepth":69,"depth":69,"links":103},[104,105,106,107],{"id":13,"depth":69,"text":14},{"id":26,"depth":69,"text":27},{"id":36,"depth":69,"text":37},{"id":93,"depth":69,"text":94},"The staging area is like a shopping cart. Before you 'buy' (commit) your changes, you put them in the cart first with `git add`.","beginner","md","s",{},true,"\u002Fterms\u002Fs\u002Fstaging-area",[116,117,118],"Commit","Git","Diff",{"title":5,"description":108},{"changefreq":121,"priority":122},"weekly",0.7,"terms\u002Fs\u002Fstaging-area","ZxlL06mkx1nH5egkIgwRz0IVnQNA_oJ5bWEU40vvhdE",[126,129,132],{"title":116,"path":127,"acronym":6,"category":55,"difficulty":109,"description":128},"\u002Fterms\u002Fc\u002Fcommit","A commit is like pressing the save button in a video game.",{"title":118,"path":130,"acronym":6,"category":55,"difficulty":109,"description":131},"\u002Fterms\u002Fd\u002Fdiff","A diff shows you exactly what changed between two versions of your code.",{"title":117,"path":133,"acronym":6,"category":55,"difficulty":109,"description":134},"\u002Fterms\u002Fg\u002Fgit","Git is like a magical save system for your code. Every time you save (commit), it remembers exactly what changed.",1776518315013]