Skip to content

Instantly share code, notes, and snippets.

@devwax
Created March 13, 2022 18:14
Show Gist options
  • Save devwax/9baf5da16c6cadea5502ef231fe9b347 to your computer and use it in GitHub Desktop.
Save devwax/9baf5da16c6cadea5502ef231fe9b347 to your computer and use it in GitHub Desktop.
Checkout a directory within a monorepo or other large repo
git clone --filter=blob:none --sparse https://github.com/[username]/[whatever].git
cd [whatever]
git sparse-checkout init --cone
git sparse-checkout add examples/nextjs-slack-clone
# Source: https://hasura.io/learn/graphql/hasura-auth-slack/data-modeling/3-apply-migrations/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment