From c09c9c1108eb4f58a63c834209b55bdfc3a8ba17 Mon Sep 17 00:00:00 2001 From: thierry nibert-siber Date: Wed, 16 Sep 2026 20:18:36 +0000 Subject: [PATCH] Actualiser README.md --- README.md | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/README.md b/README.md index 295607a..098c705 100644 --- a/README.md +++ b/README.md @@ -26,3 +26,40 @@ All my public sourcecode and binaries(apk, ubuntu binaries, freebsd binaries and ![Cellule](https://youtube.com/watch?v=o0jTs_5dHxs) ![Color Spaces](https://youtube.com/watch?v=hCEmZdPWLII) + +#Using Sparse Checkout + +Sparse checkout allows you to check out only part of the working directory. This is particularly useful for large repositories where you only need a specific subdirectory. +Step 1: Initialize the Repository + +First, clone the repository with the --no-checkout option to avoid checking out the files immediately. + +```sh +git clone --no-checkout +cd +``` + +Step 2: Enable Sparse Checkout + +Configure Git to enable sparse checkout. +```sh +git sparse-checkout init +``` + +Step 3: Define the Subdirectory + +Specify the subdirectory you want to clone. For example, if you want to clone the ``` cpp ``` subdirectory: + +```sh +git sparse-checkout set cpp +``` + +Step 4: Checkout the Subdirectory + +Now, checkout the repository. Only the specified subdirectory will be checked out. + +```sh +git checkout main +``` + +Replace main with the appropriate branch name if it differs. \ No newline at end of file