github-repo

command module
v0.9.23 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2023 License: LGPL-2.1 Imports: 1 Imported by: 0

README

CI Go Report Maintainability


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!

Installation

Using prebuilt binaries:
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
Building from source:

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

Usage

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

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