mirror of
https://github.com/tiktok/sparo.git
synced 2024-11-27 09:36:04 -05:00
1 line
No EOL
2.8 KiB
JavaScript
1 line
No EOL
2.8 KiB
JavaScript
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[240],{86:(t,e,o)=>{o.r(e),o.d(e,{assets:()=>a,contentTitle:()=>r,default:()=>m,frontMatter:()=>n,metadata:()=>i,toc:()=>p});var s=o(678),c=o(4738);const n={title:"sparo git-checkout"},r=void 0,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 fetch",permalink:"/sparo/pages/commands/sparo_fetch"},next:{title:"sparo git-clone",permalink:"/sparo/pages/commands/sparo_git-clone"}},a={},p=[];function h(t){const e={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>]\r\nsparo git-checkout [-q] [-f] [-m] --detach [<branch>]\r\nsparo git-checkout [-q] [-f] [-m] [--detach] <commit>\r\nsparo git-checkout [-q] [-f] [-m] [[-b|-B|--orphan] <new-branch>] [<start-point>]\r\nsparo git-checkout [-f|--ours|--theirs|-m|--conflict=<style>] [<tree-ish>] [--] <pathspec>\u2026\u200b\r\nsparo git-checkout [-f|--ours|--theirs|-m|--conflict=<style>] [<tree-ish>] --pathspec-from-file=<file> [--pathspec-file-nul]\r\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."]})]})}function m(t={}){const{wrapper:e}={...(0,c.R)(),...t.components};return e?(0,s.jsx)(e,{...t,children:(0,s.jsx)(h,{...t})}):h(t)}},4738:(t,e,o)=>{o.d(e,{R:()=>r,x:()=>i});var s=o(6166);const c={},n=s.createContext(c);function r(t){const e=s.useContext(n);return s.useMemo((function(){return"function"==typeof t?t(e):{...e,...t}}),[e,t])}function i(t){let e;return e=t.disableParentContext?"function"==typeof t.components?t.components(c):t.components||c:r(t.components),s.createElement(n.Provider,{value:e},t.children)}}}]); |