This script allows you to clone specific folders from a GitHub repository using Git's sparse-checkout feature. It is useful when you only need certain parts of a repository instead of cloning the entire repository.
- Clone specific folders from a GitHub repository.
- Automatically initializes a Git repository and sets up sparse-checkout.
- Handles errors gracefully, including cases where the remote origin already exists.
- Python 3.x
- Git installed on your system
- Clone this repository or download the script file
github_downloader.py
. - Ensure that Git is installed and available in your system's PATH.
Run the script from the command line with the following arguments:
python [github_downloader.py](http://_vscodecontentref_/0) <repo_url> <destination_path> <folders>