Skip to content
This repository has been archived by the owner on Feb 24, 2021. It is now read-only.

tbobm/gogit

Repository files navigation

Gogit

License Godoc

Golang-based CLI wrapper for github.com

Usage

Beforehand

Before anything else, export your freshly created personnal access token, as GITHUB_TOKEN You can do so by including the export GITHUB_TOKEN=xxxx... in your ~/.bashrc or ~/.profile.

Commands

  • Create a repository
$ gogit repo create -n repository_name [-p] # -p makes the repository private
  • List a user's repositories
$ gogit repo list -u username
  • Display help
$ gogit --help # Or simply 'gogit', which defaults to displaying the help

Installation

From a release

Download the corresponding archive from the release page, extract its content, and place the gogit executable in your $PATH variable.

From source

Clone the master branch, and run make install. This will run the go install command, placing the gogit executable in your $GOPATH

dep is used to manage packages.

$ git clone https://github.com/tbobm/gogit
$ cd gogit
$ make install

Why ?

I'm tired of having to use my browser to create repositories, have informations about my issues, pull requests, etc.

I just want to have a CLI tool that'll allow me to avoid going to github.com everytime.

Plus I like my terminal font more than my browser's, in addition to that.

License

Apache License

Copyright (c) 2017 Theo Massard