Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JustinChristensen/39d93153bcede55ef8b86be848a95922 to your computer and use it in GitHub Desktop.
Save JustinChristensen/39d93153bcede55ef8b86be848a95922 to your computer and use it in GitHub Desktop.
Git Monorepo
[wroathe@mordor:react] $ git clone --filter=blob:none --no-checkout git@github.com:facebook/react.git .
Cloning into '.'...
remote: Enumerating objects: 117544, done.
remote: Counting objects: 100% (167/167), done.
remote: Compressing objects: 100% (96/96), done.
remote: Total 117544 (delta 88), reused 136 (delta 71), pack-reused 117377
Receiving objects: 100% (117544/117544), 17.86 MiB | 3.85 MiB/s, done.
Resolving deltas: 100% (68467/68467), done.
[wroathe@mordor:react] (main) $ git sparse-checkout init --cone
[wroathe@mordor:react] (main|SPARSE) $ git sparse-checkout set packages/react
[wroathe@mordor:react] (main|SPARSE) $ git checkout
remote: Enumerating objects: 95, done.
remote: Counting objects: 100% (78/78), done.
remote: Compressing objects: 100% (73/73), done.
remote: Total 95 (delta 17), reused 6 (delta 5), pack-reused 17
Receiving objects: 100% (95/95), 432.71 KiB | 2.24 MiB/s, done.
Resolving deltas: 100% (19/19), done.
Updating files: 100% (95/95), done.
Your branch is up to date with 'origin/main'.
[wroathe@mordor:react] (main|SPARSE) $ ls
AUTHORS CONTRIBUTING.md ReactVersions.js babel.config.js package.json
CHANGELOG.md LICENSE SECURITY.md dangerfile.js packages
CODE_OF_CONDUCT.md README.md appveyor.yml netlify.toml yarn.lock
[wroathe@mordor:react] (main|SPARSE) $ ls packages
react
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment