mirror of
https://github.com/foo-dogsquared/wiki.git
synced 2025-02-07 18:19:35 +00:00
1 line
2.7 KiB
JSON
1 line
2.7 KiB
JSON
{"pageProps":{"metadata":{"date":"2021-08-27 22:10:45 +08:00","date_modified":"2021-08-28 16:27:45 +08:00","language":"en","source":""},"title":"Git","hast":{"type":"root","children":[{"type":"element","tagName":"nav","properties":{"className":"toc"},"children":[{"type":"element","tagName":"ol","properties":{"className":"toc-level toc-level-1"},"children":[{"type":"element","tagName":"li","data":{"hookArgs":[{"type":"element","tagName":"h1","properties":{"id":"submodules"},"children":[{"type":"text","value":"Submodules"}]}]},"properties":{"className":"toc-item toc-item-h1"},"children":[{"type":"element","tagName":"a","properties":{"className":"toc-link toc-link-h1","href":"/tools.git#submodules"},"children":[{"type":"text","value":"Submodules"}]}]}]}]},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"The de-facto version control system.\n"}]},{"type":"element","tagName":"h1","properties":{"id":"submodules"},"children":[{"type":"text","value":"Submodules"}]},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"one way to vendor dependencies or use another project within the worktree\n"}]}]},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Git will inspect "},{"type":"element","tagName":"code","properties":{"className":["inline-verbatim"]},"children":[{"type":"text","value":".gitmodules"}]},{"type":"text","value":" as the submodule configuration file;\n while it is plain-text, it is mostly managed with the "},{"type":"element","tagName":"code","properties":{"className":["inline-code"]},"children":[{"type":"text","value":"git submodule"}]},{"type":"text","value":" subcommand\n"}]}]},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"to clone an existing project that uses submodules, you can add the "},{"type":"element","tagName":"code","properties":{"className":["inline-verbatim"]},"children":[{"type":"text","value":"--recursive"}]},{"type":"text","value":" flag on the "},{"type":"element","tagName":"code","properties":{"className":["inline-code"]},"children":[{"type":"text","value":"git fetch"}]},{"type":"text","value":" subcommand;\n if it's already clone, you can proceed as normal (e.g., "},{"type":"element","tagName":"code","properties":{"className":["inline-code"]},"children":[{"type":"text","value":"git submodule init && git submodule update"}]},{"type":"text","value":")\n"}]}]}]}]},"backlinks":[]},"__N_SSG":true} |