Download files and folders from a GitHub repo.
Go to the GitHub repo and locate the specific file or folder you want to
download. Right-click the file or folder and copy its link. Then use gitfiles [file or folder URL] to download it.
Example:
# Download a file
gitfiles https://github.com/username/repo/blob/branch/path-to-file
# Download a folder
gitfiles https://github.com/username/repo/tree/branch/path-to-folder# Clone the repo
git clone https://github.com/mel-yahy/gitfiles.git
cd gitfiles
# Make the script executable (if it's not already)
chmod u+x gitfiles.sh
# Move it to a directory included in your PATH, for example:
mv gitfiles.sh ~/.local/bin/gitfiles # NOTE: Ensure that ~/.local/bin is included in your PATH.This project is licensed under the MIT License.