Skip to content

Download a folder from repository (not complete repository or single files)

Background

It's currently only possible to download the entire repository as a zip file. In some situations, it may be desirable to download just a portion (folder) of the repository as a zip file.

Proposal # Proposal 1

When outside of the root folder, the download button should display the following options:

Entire repository

Download zip
Download tar.gz
Download tar.bz2
Download tar


**This folder**

Download zip
Download tar.gz
Download gar.bz2
Download tar

This is using a similar approach to the additional functionality on the plus button where the context is highlighted by a group header.

Design

Repository root Subdirectory
repo-root repo-subdirectory
Original Issue

Original Issue

Hi,

we're using GitLab actively in many of our software projects. Some of our repositories are quite big because of binary files of its toolchains. When I want to get updated files from similar repositories I'd prefer to browse in GitLab in the other project and right-click on every file I want to have on "Raw" - button "Save as". But that's annoying when I want to download several files.

Can I download a whole folder instead of the whole repository as e.g. zip file?

Downloading the whole respository would require several Gigabytes (!) to download, over a slow connection this may take a lot of time. Downloading single files would also take a lot of time because I need to right-click on "Raw" - button of every file.

What about a new entry in download combo box:

E.g.:
Download repository zip
Download repository tar.gz
Download repository tar.bz2
Download repository tar
Download folder zip
Download folder tar.gz
Download folder gar.bz2
Download folder tar

I already had a look into issue #19830 (closed) and am disappointed that you say it's not "feasible with the current architecture". Is it really so difficult to implement? I think audience would be given by "bigger" repositories.

Thanks in advance for support,
Best regards,
Daniel

Edited by Jeethu Karthik