[{"data":1,"prerenderedAt":140},["ShallowReactive",2],{"term-r\u002Freset":3,"related-r\u002Freset":125},{"id":4,"title":5,"acronym":6,"body":7,"category":48,"description":107,"difficulty":108,"extension":109,"letter":110,"meta":111,"navigation":112,"path":113,"related":114,"seo":119,"sitemap":120,"stem":123,"subcategory":6,"__hash__":124},"terms\u002Fterms\u002Fr\u002Freset.md","Reset",null,{"type":8,"value":9,"toc":101},"minimark",[10,15,19,23,26,30,90,94,97],[11,12,14],"h2",{"id":13},"eli5-the-vibe-check","ELI5 — The Vibe Check",[16,17,18],"p",{},"Reset is like pressing undo on your commits. It can be gentle (keep your changes but uncommit them) or nuclear (delete everything and go back to a previous state). Use with caution — the nuclear option can't be undone easily!",[11,20,22],{"id":21},"real-talk","Real Talk",[16,24,25],{},"Git reset moves the HEAD and current branch pointer to a specified commit. Soft reset keeps changes staged, mixed (default) keeps changes unstaged, and hard reset discards all changes. Hard reset is destructive and should be used carefully.",[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 reset --soft HEAD~1   # undo commit, keep staged\ngit reset HEAD~1          # undo commit, keep unstaged\ngit reset --hard HEAD~1   # undo commit, DELETE changes\n","bash","",[38,39,40,63,75],"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"," reset",[41,54,55],{"class":51}," --soft",[41,57,58],{"class":51}," HEAD~1",[41,60,62],{"class":61},"sHwdD","   # undo commit, keep staged\n",[41,64,66,68,70,72],{"class":43,"line":65},2,[41,67,48],{"class":47},[41,69,52],{"class":51},[41,71,58],{"class":51},[41,73,74],{"class":61},"          # undo commit, keep unstaged\n",[41,76,78,80,82,85,87],{"class":43,"line":77},3,[41,79,48],{"class":47},[41,81,52],{"class":51},[41,83,84],{"class":51}," --hard",[41,86,58],{"class":51},[41,88,89],{"class":61},"   # undo commit, DELETE changes\n",[11,91,93],{"id":92},"when-youll-hear-this","When You'll Hear This",[16,95,96],{},"\"Reset to the last commit.\" \u002F \"Be careful with hard reset — you'll lose your changes.\"",[98,99,100],"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":65,"depth":65,"links":102},[103,104,105,106],{"id":13,"depth":65,"text":14},{"id":21,"depth":65,"text":22},{"id":28,"depth":65,"text":29},{"id":92,"depth":65,"text":93},"Reset is like pressing undo on your commits.","advanced","md","r",{},true,"\u002Fterms\u002Fr\u002Freset",[115,116,117,118],"Revert","HEAD","Commit","Stash",{"title":5,"description":107},{"changefreq":121,"priority":122},"weekly",0.7,"terms\u002Fr\u002Freset","YUbOV5hCXUQdGJBnzV933JbHC0GWtiEBD3R2pHE2Qqo",[126,130,134,137],{"title":117,"path":127,"acronym":6,"category":48,"difficulty":128,"description":129},"\u002Fterms\u002Fc\u002Fcommit","beginner","A commit is like pressing the save button in a video game.",{"title":116,"path":131,"acronym":6,"category":48,"difficulty":132,"description":133},"\u002Fterms\u002Fh\u002Fhead","intermediate","HEAD is like a bookmark that says 'you are here' in your Git history. It points to the commit you're currently looking at.",{"title":115,"path":135,"acronym":6,"category":48,"difficulty":132,"description":136},"\u002Fterms\u002Fr\u002Frevert","Revert is the safe undo button. Instead of erasing history (like reset), it creates a NEW commit that undoes the changes from an old commit.",{"title":118,"path":138,"acronym":6,"category":48,"difficulty":132,"description":139},"\u002Fterms\u002Fs\u002Fstash","Stash is like putting your messy work in a drawer temporarily.",1776518307982]