Tech News
← Back to articles

Show HN: Downloading a folder from a repo using rust

read original related products more articles

Git Down

git-down lets you download one or multiple directories from a Git repository without the hassle of cloning or downloading the whole repository, with one simple command.

Usage

It's really easy to use.

$ git-down -d < DESTINATION_DIRECTORY > < REPO_URL.git:branch > FILES

The -d option above is optional. If not specified the files will be downloaded into a directory under the name of the target repository.

We're using the bootstrap repo as an example for how to use the command but it works with any repository.

For example, running the following command will create a bootstrap-dist directory in the current working directory containing bootstrap's dist directory.

$ git-down -d bootstrap-dist https://github.com/twbs/bootstrap.git:master dist

If bootstrap-dist above is not specified, a directory named bootstrap will be created instead.

... continue reading