Get LICENSE from GitHub Licenses API.
go get github.com/nasa9084/git-license
Download from releases page and put the binary into your PATH.
requirement: go module is enabled
$ git clone https://github.com/nasa9084/git-license.git
$ cd git-license
$ go build .
and copy or move git-license
binary into your PATH.
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
$ git license --help