"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[240],{86:(t,e,o)=>{o.r(e),o.d(e,{assets:()=>a,contentTitle:()=>r,default:()=>h,frontMatter:()=>n,metadata:()=>i,toc:()=>p});vars=o(678),c=o(4738);constn={title:"sparo git-checkout"},r=void0,i={id:"pages/commands/sparo_git-checkout",title:"sparo git-checkout",description:"This is the mirrored subcommand for git checkout. It has the same functionality as the corresponding Git subcommand, but supports Sparo's optional anonymous timing metrics collection.",source:"@site/docs/pages/commands/sparo_git-checkout.md",sourceDirName:"pages/commands",slug:"/pages/commands/sparo_git-checkout",permalink:"/sparo/pages/commands/sparo_git-checkout",draft:!1,unlisted:!1,editUrl:"https://github.com/tiktok/sparo/tree/main/apps/website/docs/pages/commands/sparo_git-checkout.md",tags:[],version:"current",frontMatter:{title:"sparo git-checkout"},sidebar:"docsSidebar",previous:{title:"sparo pull",permalink:"/sparo/pages/commands/sparo_pull"},next:{title:"sparo git-clone",permalink:"/sparo/pages/commands/sparo_git-clone"}},a={},p=[];functionm(t){conste={a:"a",code:"code",p:"p",pre:"pre",...(0,c.R)(),...t.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(e.p,{children:["This is the ",(0,s.jsx)(e.a,{href:"/sparo/pages/commands/overview",children:"mirrored subcommand"})," for ",(0,s.jsx)(e.code,{children:"git checkout"}),". It has the same functionality as the corresponding Git subcommand, but supports Sparo's optional anonymous timing metrics collection."]}),"\n",(0,s.jsx)(e.pre,{children:(0,s.jsx)(e.code,{children:"sparo git-checkout [-q] [-f] [-m] [<branch>]\nsparo git-checkout [-q] [-f] [-m] --detach [<branch>]\nsparo git-checkout [-q] [-f] [-m] [--detach] <commit>\nsparo git-checkout [-q] [-f] [-m] [[-b|-B|--orphan] <new-branch>] [<start-point>]\nsparo git-checkout [-f|--ours|--theirs|-m|--conflict=<style>] [<tree-ish>] [--] <pathspec>\u2026\u200b\nsparo git-checkout [-f|--ours|--theirs|-m|--conflict=<style>] [<tree-ish>] --pathspec-from-file=<file> [--pathspec-file-nul]\nsparo git-checkout (-p|--patch) [<tree-ish>] [--] [<pathspec>\u2026\u200b]\n"})}),"\n",(0,s.jsxs)(e.p,{children:["See ",(0,s.jsx)(e.a,{href:"https://git-scm.com/docs/git-checkout",children:"git checkout"})," in the Git documentation for details."]})]})}functionh(t={}){const{wrapper:e}={...(0,c.R)(),...t.components};returne?(0,s.jsx)(e,{...t,children:(0,s.jsx)(m,{...t})}):m(t)}},4738:(t,e,o)=>{o.d(e,{R:()=>r,x:()=>i});vars=o(6166);constc={},n=s.createContext(c);functionr(t){conste=s.useContext(n);returns.useMemo((function(){return"function"==typeoft?t(e):{...e,...t}}),[e,t])}functioni(t){lete;returne=t.disableParentContext?"function"==typeoft.components?t.components(c):t.components||c:r(t.components),s.createElement(n.Provider,{value:e},t.children)}}}]);