Skip to content
make LICENSE file in command line.
Go
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
Gopkg.lock
Gopkg.toml
LICENSE
README.md
main.go

README.md

git-license

Get LICENSE from GitHub Licenses API.

Installation

go get

go get github.com/nasa9084/git-license

download binary

Download from releases page and put the binary into your PATH.

build your own

requirements: dep

$ git clone https://github.com/nasa9084/git-license.git
$ cd git-license
$ dep ensure
$ go build .

and copy or move git-license binary into your PATH.

How to use

Basically:

$ git license --username YOUR_USER_NAME LICENSE_NAME

such as: git license --username nasa9084 mit.

You can see the list of license names with:

$ git license -l

Show HELP

$ git license --help
You can’t perform that action at this time.