gr is a GitHub repository management tool
WARNING! gr stores all data (including your token) in a plaintext file. If you consider this a security issue or if you are sharing your machine with other people, do not use this tool!
curl -L https://github.com/CristianHenzel/github-repo/releases/latest/download/gr_linux_amd64 -o /usr/local/bin/gr
chmod 0755 /usr/local/bin/gr
Prerequisites: git, golang, make, upx
To install prerequisites on debian/ubuntu, run:
sudo apt-get install git golang make upx-ucl
To install gr:
git clone https://github.com/CristianHenzel/github-repo
cd github-repo
make install
First, create the configuration:
gr init -u USERNAME -t TOKEN -d SOMEDIR -c 10
or, if you are using GitHub Enterprise:
gr init -c 10 -u USERNAME -t TOKEN -r https://example.com/api/v3/ -d SOMEDIR -e "repo1|SOMEORG/repo-.*" -s
After the configuration is created, you can pull all repositories using:
gr pull
you can view the status of the repositories using:
gr status
and you can push all repositories using:
gr push
After creating new repositories on the server or after user data changes, you can update the local configuration using:
gr update