Skip to content

Latest commit

 

History

History
67 lines (46 loc) · 1.35 KB

README.md

File metadata and controls

67 lines (46 loc) · 1.35 KB

gitsave - Save your all your organization repositories

📜 Table of contents


🚀 Usage

CLI app to download all the repositories of a github organization.

Usage

gitsave --gh-token tour-token-here --org organization-name

Flags:

  • githubToken: Github token ID.
  • githubOrganization: Github organization name.
  • folder : Folder to clone repositorires. Default: /tmp/gitsave
  • sshPrivateKey: Private key used to clone repositories. Default: $HOME/.ssh/id_rsa

🏗️ Installation

From binary (Linux)

sudo wget -O /usr/local/bin/gitsave https://github.com/xafardero/gitsave/releases/latest/download/gitsave
sudo chmod +x /usr/local/bin/gitsave

From binary (Mac)

sudo wget -O /usr/local/bin/gitsave https://github.com/xafardero/gitsave/releases/latest/download/gitsave_darwin
sudo chmod +x /usr/local/bin/gitsave

From source code

wget https://github.com/xafardero/gitsave/releases/latest/download/gitsave.zip
go build -o gitsave *.go
sudo mv gitsave /usr/local/bin/gitsave

🛠️ Configuration

To get the github token go to https://github.com/settings/tokens and Generate a new token with the repo scope selected.