const__pageData=JSON.parse('{"title":"Resynchronizing an Out-of-Sync Git Branch","description":"","frontmatter":{},"headers":[],"relativePath":"newbs_git_resynchronize_a_branch.md","filePath":"newbs_git_resynchronize_a_branch.md"}');
const_hoisted_1=/* @__PURE__ */createStaticVNode('<h1id="resynchronizing-an-out-of-sync-git-branch"tabindex="-1">ResynchronizinganOut-of-SyncGitBranch<aclass="header-anchor"href="#resynchronizing-an-out-of-sync-git-branch"aria-label="Permalink to "Resynchronizing an Out-of-Sync Git Branch""></a></h1><p>Supposeyouhavecommittedtoyour<code>master</code>branch,andnowneedtoupdateyourQMKrepository.Youcould<code>gitpull</code>QMK's<code>master</code>branchintoyourown,butGitHubwilltellyouthatyourbranchisanumberofcommitsaheadof<code>qmk:master</code>,whichcancreateissuesifyouwanttomakeapullrequesttoQMK.</p><divclass="tipcustom-block"><pclass="custom-block-title">TIP</p><p>Thisdocumentbuildsupontheconceptsdetailedin<ahref="./newbs_git_using_your_master_branch">YourFork'sMaster:UpdateOften,CommitNever</a>.Ifyouarenotfamiliarwiththatdocument,pleasereaditfirst,thenreturnhere.</p></div><h2id="backing-up-the-changes-on-your-own-master-branch-optional"tabindex="-1">BackingUptheChangesonYourOwnMasterBranch(Optional)<aclass="header-anchor"href="#backing-up-the-changes-on-your-own-master-branch-optional"aria-label="Permalinkto"BackingUptheChangesonYourOwnMasterBranch(Optional)""></a></h2><p>Noonewantstoloseworkifitcanbehelped.Ifyouwanttosavethechangesyou'vealreadymadetoyour<code>master</code>branch,thesimplestwaytodosoistosimplycreateaduplicateofyour"dirty"<code>master</code>branch:</p><divclass="language-vp-adaptive-theme"><buttontitle="CopyCode"class="copy"></button><spanclass="lang"></span><preclass="shikishiki-themesgithub-lightgithub-darkvp-code"><code><spanclass="line"><span>gitbranchold_mastermaster</span></span></code></pre></div><p>Nowyouhaveabranchnamed<code>old_master</code>thatisaduplicateofyour<code>master</code>branch.</p><h2id="resynchronizing-your-branch"tabindex="-1">ResynchronizingYourBranch<aclass="header-anchor"href="#resynchronizing-your-branch"aria-label="Permalinkto"ResynchronizingYourBranch""></a></h2><p>Nowit'stimetoresynchronizeyour<code>master</code>branch.Forthisstep,you'llwanttohaveQMK'srepositoryconfiguredasaremoteinGit.Tocheckyourconfiguredremotes,run<code>gitremote-v</code>,whichshouldreturnsomethingsimilarto:</p><divclass="language-vp-adaptive-theme"><buttontitle="CopyCode"class="copy"></button><spanclass="lang"></span><preclass="shikishiki-themesgithub-lightgithub-darkvp-code"><code><spanclass="line"><span>QMKuser~/qmk_firmware(master)</span></span>\n<spanclass="line"><span>$gitremote-v</span></span>\n<spanclass="line"><span>originhttps://github.com/<your_username>/qmk_firmware.git(fetch)</span></span>\n<spanclass="line"><span>originhttps://github.com/<your_username>/qmk_firmware.git(push)</span></span>\n<spanclass="line"><span>upstreamhttps://github.com/qmk/qmk_firmware.git(fetch)</span></span>\n<spanclass="line"><span>upstreamhttps://github.com/qmk/qmk_firmware.git(push)</span></span></code></pre></div><p>Ifyouonlyseeoneforkreferenced:</p><divclass="language-vp-adaptive-theme"><buttontitle="CopyCode"class="copy"></button><spanclass="lang"></span><preclass="shikishiki-themesgithub-lightgithub-darkvp-code"><code><spanclass="line"><span>QMKuser~/qmk_firmware(master)</span></span>\n<spanclass="line"><span>$gitremote-v</span></span>\n<spanclass="line"><span>originhttps://github.com/qmk/qmk_firmware.git(fetch)</span></span>\n<spanclass="line"><span>originhttps://github.com/qmk/qmk_firmware.git(push)</span></span></code></pre></div><p>addanewremotewith:</p><divclass="language-vp-adaptive-theme"><buttontitle="CopyCode"class="copy"></button><spanclass="lang"></span><preclass="shikishiki-themesgithub-lightgithub-darkvp-code"><code><spanclass="line"><span>gitremoteaddupstreamhttps://github.co