Skip to content
Download a file from a GitLab server
Go PowerShell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci
build/tools
docs/use cases
pkg/linux_amd64/github.com/denisbrodbeck
src
.gitattributes
.gitignore
LICENSE
README.md
build.ps1
release.ps1

README.md

GitLabFileDownloader

CircleCI Go Report Card

Download a file from a GitLab server and save it to disk if file is different.

Latest

https://dl.equinox.io/dhcgn/gitlabfiledownloader/stable

Using

GitLabDownloader_windows_amd64.exe -h

Version: 0.0.0
Usage of GitLabDownloader_windows_amd64.exe:
  -branch string
        Branch (default "master")
  -outPath string
        Path to write file to disk
  -projectNumber int
        The Project ID from your project
  -reproFilePath string
        File path in repro, like src/main.go
  -token string
        Private-Token with access right for api and read_repository
  -url string
        Url to Api v4, like https://my-git-lab-server.local/api/v4/

Use Case

You want to have the benefits from git to manage your config files. With this (windows and linux) tool you can now download theses config files from an on-promise GitLab instance and save them to disk.

The file will be only replaced if the hash is different (from disk to git).

gitlabfiledownloader.exe -reproFilePath myconfig.xml -outPath c:\App\myconfig.xml -projectNumber 547 -url https://gitlab.com/api/v4/ -token jd32dwEH2FS42342Sdf32
You can’t perform that action at this time.