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
sudo wget -O /usr/local/bin/gitsave https://github.com/xafardero/gitsave/releases/latest/download/gitsave
sudo chmod +x /usr/local/bin/gitsave
sudo wget -O /usr/local/bin/gitsave https://github.com/xafardero/gitsave/releases/latest/download/gitsave_darwin
sudo chmod +x /usr/local/bin/gitsave
wget https://github.com/xafardero/gitsave/releases/latest/download/gitsave.zip
go build -o gitsave *.go
sudo mv gitsave /usr/local/bin/gitsave
To get the github token go to https://github.com/settings/tokens and Generate a new token with the repo scope selected.