This tool allows users to easily download specific directories and files from GitHub repositories using the command line.
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.
-
Install
python-virtualenv
andpyinstaller
:- For Arch-based systems:
yay -S pyinstaller python-virtualenv
(replaceyay
with your preferred AUR helper).
- For Arch-based systems:
-
Clone the repository:
-
git clone https://github.com/Clutchnp/gitdown.git
-
-
Use the install script or install manually.
-
Enjoy!
-
Install Python.
-
Run
install.bat
. -
Enjoy!
-
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