Skip to content

kc-rubin/github-downloader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages