Skip to content

Latest commit

 

History

History
26 lines (16 loc) · 872 Bytes

File metadata and controls

26 lines (16 loc) · 872 Bytes

GitHub Downloader

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.

Features

  • 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.

Requirements

  • Python 3.x
  • Git installed on your system

Installation

  1. Clone this repository or download the script file github_downloader.py.
  2. Ensure that Git is installed and available in your system's PATH.

Usage

Run the script from the command line with the following arguments:

python [github_downloader.py](http://_vscodecontentref_/0) <repo_url> <destination_path> <folders>