Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Jan 5, 2023. It is now read-only.

stoe/client-sparse-checkout-demo

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Demo

Run the bootstrap.sh command using one of the following: android, ios, or all.

Each will launch the git sparse-checkout set command to show only the directories needed for those teams.

  1. $ git clone --filter=blob:none --no-checkout git@github.com:stoe/client-sparse-checkout-demo.git
    Cloning into 'client-sparse-checkout-demo'...
    remote: Enumerating objects: 4, done.
    remote: Counting objects: 100% (4/4), done.
    remote: Compressing objects: 100% (3/3), done.
    remote: Total 4 (delta 0), reused 4 (delta 0), pack-reused 0
    Receiving objects: 100% (4/4), done.
  2. $ cd client-sparse-checkout-demo/
  3. git sparse-checkout init --cone
  4. $ git checkout main
    remote: Enumerating objects: 4, done.
    remote: Counting objects: 100% (4/4), done.
    remote: Compressing objects: 100% (4/4), done.
    remote: Total 4 (delta 0), reused 4 (delta 0), pack-reused 0
    Receiving objects: 100% (4/4), 2.84 KiB | 2.84 MiB/s, done.
    Already on 'main'
    Your branch is up to date with 'origin/main'.
    $ tree
    .
    ├── bootstrap.sh
    └── readme.md
    
    0 directories, 2 files

Android

$ ./bootstrap.sh android
Running 'git sparse-checkout init --cone'
Running 'git sparse-checkout set common client/android tools/android'
$ tree
.
├── bootstrap.sh
├── client
│   └── android
│       └── android.jpg
├── common
├── readme.md
└── tools
    └── android

5 directories, 3 files

iOS

$ ./bootstrap.sh ios
Running 'git sparse-checkout init --cone'
Running 'git sparse-checkout set common client/ios tools/ios'
$ tree
.
├── bootstrap.sh
├── client
│   └── iOS
│       └── ios.jpg
├── common
├── readme.md
└── tools
    └── iOS

5 directories, 3 files

All

$ ./bootstrap.sh all
Running 'git sparse-checkout init --cone'
Running 'git sparse-checkout set common client tools'
$ tree
.
├── bootstrap.sh
├── client
│   ├── android
│   │   └── android.jpg
│   └── iOS
│       └── ios.jpg
├── common
├── readme.md
└── tools
    ├── android
    └── iOS

7 directories, 4 files

Resources

Images:

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.