Skip to content

Clutchnp/gitdown

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitDown CLI Tool

This tool allows users to easily download specific directories and files from GitHub repositories using the command line.

Big Change

The commit #932a6b introduces a new way to handle API requests.

Before: The number of API requests was dependent on the directories traversed (due to recursion), which increased the chances of hitting the rate limit.

After: This commit reduces the number of API requests to just 2 for non-truncated GitHub responses. Handling of truncated responses (seen in large repositories) is still a work in progress.


Installation

For Linux Systems

  1. Install python-virtualenv and pyinstaller:

    • For Arch-based systems: yay -S pyinstaller python-virtualenv (replace yay with your preferred AUR helper).
  2. Clone the repository:

    • git clone https://github.com/Clutchnp/gitdown.git
  3. Use the install script or install manually.

  4. Enjoy!

For Windows Systems

  1. Install Python.

  2. Run install.bat.

  3. Enjoy!


Usage

  • Without installation:

    • python3 gitdown.py {link} {newname}
  • With installation:

    • gitdown {link} {newname}

Note

From commit #24e4056 if you dont specify branch name while downloading a whole repo then main branch is assumed also now the name is changed to the repo name if whole repo is downloaded

Note

Also Dowloading files dont use API requests so no fear of hitting rate limits

About

download github directories from cli easily

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published