mirror of
https://github.com/tiktok/sparo.git
synced 2024-11-27 09:36:04 -05:00
1 line
No EOL
3.3 KiB
JavaScript
1 line
No EOL
3.3 KiB
JavaScript
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[373],{317:(e,t,o)=>{o.r(t),o.d(t,{assets:()=>c,contentTitle:()=>a,default:()=>l,frontMatter:()=>i,metadata:()=>r,toc:()=>p});var n=o(678),s=o(4738);const i={title:"sparo auto-config"},a=void 0,r={id:"pages/commands/sparo_auto-config",title:"sparo auto-config",description:"You do not normally need to invoke sparo auto-config. As the name implies, it is automatically applied by sparo clone. This command is provided for reapplying the configuration in a situation where the user may have manually altered Sparo's configuration. It is a good first step when investigating problems.",source:"@site/docs/pages/commands/sparo_auto-config.md",sourceDirName:"pages/commands",slug:"/pages/commands/sparo_auto-config",permalink:"/sparo/pages/commands/sparo_auto-config",draft:!1,unlisted:!1,editUrl:"https://github.com/tiktok/sparo/tree/main/apps/website/docs/pages/commands/sparo_auto-config.md",tags:[],version:"current",frontMatter:{title:"sparo auto-config"},sidebar:"docsSidebar",previous:{title:"Overview",permalink:"/sparo/pages/commands/overview"},next:{title:"sparo checkout",permalink:"/sparo/pages/commands/sparo_checkout"}},c={},p=[{value:"Auto-config settings",id:"auto-config-settings",level:2}];function u(e){const t={a:"a",code:"code",h2:"h2",p:"p",pre:"pre",...(0,s.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t.pre,{children:(0,n.jsx)(t.code,{children:"sparo auto-config\n\nAutomatic setup optimized git config\n\nOptions:\n -h, --help Show help [boolean]\n --overwrite [boolean] [default: false]\n"})}),"\n",(0,n.jsxs)(t.p,{children:["You do not normally need to invoke ",(0,n.jsx)(t.code,{children:"sparo auto-config"}),". As the name implies, it is automatically applied by ",(0,n.jsx)(t.code,{children:"sparo clone"}),". This command is provided for reapplying the configuration in a situation where the user may have manually altered Sparo's configuration. It is a good first step when investigating problems."]}),"\n",(0,n.jsx)(t.h2,{id:"auto-config-settings",children:"Auto-config settings"}),"\n",(0,n.jsxs)(t.p,{children:["The implementation can be found in ",(0,n.jsx)(t.a,{href:"https://github.com/tiktok/sparo/blob/main/apps/sparo-lib/src/services/GitService.ts",children:"GitService.ts"}),". Below is a summary of the currently applied settings:"]}),"\n",(0,n.jsx)(t.pre,{children:(0,n.jsx)(t.code,{children:"pull.rebase=true\nfetch.prune=true\nfetch.showForcedUpdates=false\nfeature.manyFiles=true\ncore.fsmonitor=true\ncore.fscache=true\ncore.untrackedcache=true\noh-my-zsh.hide-status=1\noh-my-zsh.hide-dirty=1\nlfs.allowincompletepush=true\nlfs.concurrenttransfers=32\npush.autoSetupRemote=true\n"})})]})}function l(e={}){const{wrapper:t}={...(0,s.R)(),...e.components};return t?(0,n.jsx)(t,{...e,children:(0,n.jsx)(u,{...e})}):u(e)}},4738:(e,t,o)=>{o.d(t,{R:()=>a,x:()=>r});var n=o(6166);const s={},i=n.createContext(s);function a(e){const t=n.useContext(i);return n.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function r(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:a(e.components),n.createElement(i.Provider,{value:t},e.children)}}}]); |