tiktok-sparo/assets/js/482d7390.821c5dc5.js

1 line
2.8 KiB
JavaScript
Raw Normal View History

"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});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 pull",permalink:"/sparo/pages/commands/sparo_pull"},next:{title:"sparo git-clone",permalink:"/sparo/pages/commands/sparo_git-clone"}},a={},p=[];function m(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>]\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."]})]})}function h(t={}){const{wrapper:e}={...(0,c.R)(),...t.components};return e?(0,s.jsx)(e,{...t,children:(0,s.jsx)(m,{...t})}):m(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)}}}]);