[{"data":1,"prerenderedAt":142},["ShallowReactive",2],{"glossary-page-\u002Fglossary\u002Fbranch":3},{"id":4,"title":5,"body":6,"description":130,"extension":131,"meta":132,"navigation":137,"path":138,"seo":139,"stem":140,"__hash__":141},"docs\u002Fglossary\u002Fbranch.md","Branch (Git)",{"type":7,"value":8,"toc":122},"minimark",[9,15,20,32,36,39,72,76,79,95,98,102],[10,11,12],"glossary-title",{},[13,14,5],"p",{},[16,17,19],"h2",{"id":18},"what-is-a-branch","What Is a Branch?",[13,21,22,23,27,28,31],{},"In ",[24,25,26],"strong",{},"Git",", a ",[24,29,30],{},"branch"," is a named line of development. It lets developers work on features, fixes, or experiments without immediately changing the main branch.",[16,33,35],{"id":34},"why-branches-matter","Why Branches Matter",[13,37,38],{},"Branches make it easier to:",[40,41,42,49,55,61],"ul",{},[43,44,45,48],"li",{},[24,46,47],{},"isolate work safely"," while development is still in progress,",[43,50,51,54],{},[24,52,53],{},"review changes before merge",",",[43,56,57,60],{},[24,58,59],{},"support parallel work"," across multiple engineers or teams,",[43,62,63,66,67,71],{},[24,64,65],{},"protect stable branches"," such as ",[68,69,70],"code",{},"main"," or release branches.",[16,73,75],{"id":74},"how-branches-are-used","How Branches Are Used",[13,77,78],{},"A common workflow is:",[40,80,81,86,89,92],{},[43,82,83,84,54],{},"create a branch from ",[68,85,70],{},[43,87,88],{},"make commits on that branch,",[43,90,91],{},"open a pull request or merge request,",[43,93,94],{},"merge the branch once checks and reviews pass.",[13,96,97],{},"Short-lived branches are usually easier to review and merge than long-running branches with large divergence.",[16,99,101],{"id":100},"related-terms","Related Terms",[40,103,104,110,116],{},[43,105,106],{},[107,108,26],"a",{"href":109},"\u002Fglossary\u002Fgit",[43,111,112],{},[107,113,115],{"href":114},"\u002Fglossary\u002Fcommit","Commit",[43,117,118],{},[107,119,121],{"href":120},"\u002Fglossary\u002Fpull-request","Pull Request",{"title":123,"searchDepth":124,"depth":124,"links":125},"",2,[126,127,128,129],{"id":18,"depth":124,"text":19},{"id":34,"depth":124,"text":35},{"id":74,"depth":124,"text":75},{"id":100,"depth":124,"text":101},"A branch in Git is a movable reference to a line of development, allowing teams to isolate work without changing the main branch immediately.","md",{"category":133,"tags":134},"B",[26,135,136],"Version Control","Development Workflow",true,"\u002Fglossary\u002Fbranch",{"title":5,"description":130},"glossary\u002Fbranch","gS0jOHBlFLhpT_8BK4Ch7LxZpRAm46nqiM6SD2mCL74",1775216700869]