gitdump

command module
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 31, 2021 License: MIT Imports: 1 Imported by: 0

README

GitDump

Logo

GitDump

Tool for downloading GitHub repositories.

Report Bug | Request Feature

Table of Contents

About the Project

GitDump is a tool that will give you the ability to download one or all the repositories in a GitHub account. This could be achieved for a public, private or an organization account. That way you get an archive of your work or somebody else work.

Installation

This software can be used on Linux, Mac and Windows.

Just go to the releases page if you want to download the binaries at https://github.com/mrauer/gitdump/releases or copy/paste the following commands if you're on Linux or Mac.

Linux
curl -Lo gitdump https://github.com/mrauer/gitdump/releases/download/v0.2.0/gitdump_0.2.0_linux_amd64 && chmod +x gitdump && sudo mv gitdump /usr/local/bin
Mac
curl -Lo gitdump https://github.com/mrauer/gitdump/releases/download/v0.2.0/gitdump_0.2.0_darwin_amd64 && chmod +x gitdump && sudo mv gitdump /usr/local/bin

Configuration

Once the software can be run from your machine the next step is to configure it.

First you need to specify where the repositories will be downloaded in your machine:

gitdump config path <path>

Then we need a token to be authenticated on GitHub.

On your GitHub account, go to Settings > Developer settings > Personal access tokens

In there, click on Generate new token. Check the repo scope (Full control of private repositories).

Copy the token and type the following command:

gitdump config token <github_token>

Example:

gitdump config path /tmp
gitdump config token aid6acceae52aa987303421fd757ff684d4f2b9d

Usage

Those are the main commands you can use:

gitdump users ls <user> (list the repositories of a public user)
gitdump users get <user> <repository> (download a public repository)
gitdump users dump <user> (download all repositories from a public user)

gitdump owners ls <owner> (list the repositories of a private user)
gitdump owners get <owner> <repository> (download a private repository)
gitdump owners dump <owner> (download all repositories from a private user)

gitdump orgs ls (list all organizations in your account)
gitdump orgs ls <organization> (list the repositories of an organization)
gitdump orgs get <organization> <repository> (download an organization repository)
gitdump orgs dump <organization> (download all repositories from an organization)

Example:

gitdump users ls Netflix (list all public repositories of Netflix)

Contribute

If you have any ideas or find a bug, you could always submit on the issues section but you can also directly help since the project is open source. Those are the commands you need to run on a local machine:

make dev (run a dev machine assuming you have docker installed)
make binary (generate a binary)
make releases (generate the releases for all environments)

License

Distributed under the MIT License. See LICENSE for more information.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL